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:
parent
9099884162
commit
49410ae20a
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue