mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-09-10 19:20:06 +00:00
fix router forwarding flag set
This commit is contained in:
@@ -546,7 +546,11 @@ nd6_input(struct pbuf *p, struct netif *inp)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Send back a NA for us. Allocate the reply pbuf. */
|
/* Send back a NA for us. Allocate the reply pbuf. */
|
||||||
|
#if ESP_LWIP && LWIP_FORCE_ROUTER_FORWARDING
|
||||||
|
nd6_send_na(inp, &target_address, ND6_FLAG_ROUTER | ND6_FLAG_SOLICITED | ND6_FLAG_OVERRIDE);
|
||||||
|
#else
|
||||||
nd6_send_na(inp, &target_address, ND6_FLAG_SOLICITED | ND6_FLAG_OVERRIDE);
|
nd6_send_na(inp, &target_address, ND6_FLAG_SOLICITED | ND6_FLAG_OVERRIDE);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
break; /* ICMP6_TYPE_NS */
|
break; /* ICMP6_TYPE_NS */
|
||||||
|
|||||||
@@ -2404,6 +2404,14 @@
|
|||||||
#define LWIP_IPV6 0
|
#define LWIP_IPV6 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* when LWIP_FORCE_ROUTER_FORWARDING is enbaled in lwip, the router flag in NA packet will always
|
||||||
|
* set to 1, otherwise, never set router flag for NA packets.
|
||||||
|
*/
|
||||||
|
#if !defined LWIP_FORCE_ROUTER_FORWARDING || defined __DOXYGEN__
|
||||||
|
#define LWIP_FORCE_ROUTER_FORWARDING 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* LWIP_ND6==1: Enable NDP
|
* LWIP_ND6==1: Enable NDP
|
||||||
* when LWIP_IPV6 is enabled in lwIP, NDP timer is enabled by default with a timeout of 1 second.
|
* when LWIP_IPV6 is enabled in lwIP, NDP timer is enabled by default with a timeout of 1 second.
|
||||||
|
|||||||
Reference in New Issue
Block a user