net: Allow loopback address for packet

This is enabled so that the loopback network test
driver works.

Change-Id: Ib5e1af2c1b064b0ef71c31be919ea88ed62531ff
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2015-05-04 14:49:26 +03:00 committed by Anas Nashif
commit 49410ae20a

View file

@ -1271,7 +1271,8 @@ uip_process(struct net_buf *buf, uint8_t flag)
#else /* UIP_CONF_ROUTER */
if(!uip_ds6_is_my_addr(&UIP_IP_BUF(buf)->destipaddr) &&
!uip_ds6_is_my_maddr(&UIP_IP_BUF(buf)->destipaddr) &&
!uip_is_addr_mcast(&UIP_IP_BUF(buf)->destipaddr)) {
!uip_is_addr_mcast(&UIP_IP_BUF(buf)->destipaddr) &&
!uip_is_addr_loopback(&UIP_IP_BUF(buf)->destipaddr)) {
PRINTF("Dropping packet, not for me\n");
UIP_STAT(++uip_stat.ip.drop);
goto drop;