mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
Fix last commit for all netif loopback traffic
This commit is contained in:
parent
b1f8ce8769
commit
59ecea3d8c
@ -168,9 +168,6 @@ netif_loopif_init(struct netif *netif)
|
|||||||
#if LWIP_LOOPIF_MULTICAST
|
#if LWIP_LOOPIF_MULTICAST
|
||||||
netif_set_flags(netif, NETIF_FLAG_IGMP);
|
netif_set_flags(netif, NETIF_FLAG_IGMP);
|
||||||
#endif
|
#endif
|
||||||
#if LWIP_NETIF_LOOPBACK_MULTITHREADING
|
|
||||||
netif->reschedule_poll = 0;
|
|
||||||
#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */
|
|
||||||
NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_DISABLE_ALL);
|
NETIF_SET_CHECKSUM_CTRL(netif, NETIF_CHECKSUM_DISABLE_ALL);
|
||||||
return ERR_OK;
|
return ERR_OK;
|
||||||
}
|
}
|
||||||
@ -351,10 +348,6 @@ netif_add(struct netif *netif,
|
|||||||
#if LWIP_IPV6 && LWIP_IPV6_MLD
|
#if LWIP_IPV6 && LWIP_IPV6_MLD
|
||||||
netif->mld_mac_filter = NULL;
|
netif->mld_mac_filter = NULL;
|
||||||
#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */
|
#endif /* LWIP_IPV6 && LWIP_IPV6_MLD */
|
||||||
#if ENABLE_LOOPBACK
|
|
||||||
netif->loop_first = NULL;
|
|
||||||
netif->loop_last = NULL;
|
|
||||||
#endif /* ENABLE_LOOPBACK */
|
|
||||||
|
|
||||||
/* remember netif specific state information data */
|
/* remember netif specific state information data */
|
||||||
netif->state = state;
|
netif->state = state;
|
||||||
@ -362,9 +355,16 @@ netif_add(struct netif *netif,
|
|||||||
netif->input = input;
|
netif->input = input;
|
||||||
|
|
||||||
NETIF_RESET_HINTS(netif);
|
NETIF_RESET_HINTS(netif);
|
||||||
#if ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS
|
#if ENABLE_LOOPBACK
|
||||||
|
netif->loop_first = NULL;
|
||||||
|
netif->loop_last = NULL;
|
||||||
|
#if LWIP_LOOPBACK_MAX_PBUFS
|
||||||
netif->loop_cnt_current = 0;
|
netif->loop_cnt_current = 0;
|
||||||
#endif /* ENABLE_LOOPBACK && LWIP_LOOPBACK_MAX_PBUFS */
|
#endif /* LWIP_LOOPBACK_MAX_PBUFS */
|
||||||
|
#if LWIP_NETIF_LOOPBACK_MULTITHREADING
|
||||||
|
netif->reschedule_poll = 0;
|
||||||
|
#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */
|
||||||
|
#endif /* ENABLE_LOOPBACK */
|
||||||
|
|
||||||
#if LWIP_IPV4
|
#if LWIP_IPV4
|
||||||
netif_set_addr(netif, ipaddr, netmask, gw);
|
netif_set_addr(netif, ipaddr, netmask, gw);
|
||||||
|
Loading…
Reference in New Issue
Block a user