mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(lwip): Add default IPv6 input filter to drop traffic if ipv6 not assigned
* Makes LWIP_HOOK_IP6_INPUT default to LWIP_HOOK_IP6_INPUT_DEFAULT * Updated the stub hook implementation to actually filter out all IPv6 packets if the input netif has no link local address.
This commit is contained in:
committed by
David Čermák
parent
0587ac3766
commit
9a8025c609
@@ -1268,11 +1268,15 @@ menu "LWIP"
|
||||
choice LWIP_HOOK_IP6_INPUT
|
||||
prompt "IPv6 packet input"
|
||||
depends on LWIP_IPV6
|
||||
default LWIP_HOOK_IP6_INPUT_NONE
|
||||
default LWIP_HOOK_IP6_INPUT_DEFAULT
|
||||
help
|
||||
Enables custom IPv6 packet input.
|
||||
Setting this to "default" provides weak implementation
|
||||
stub that could be overwritten in application code.
|
||||
Setting this to "default" provides weak IDF implementation,
|
||||
which drops all incoming IPv6 traffic if the interface has no link local address.
|
||||
(this default implementation is "weak" and could be still overwritten
|
||||
in the application if some additional IPv6 input packet filtering is needed)
|
||||
Setting this to "none" removes this default filter and conforms to the lwIP
|
||||
implementation (which accepts multicasts even if the interface has no link local address)
|
||||
Setting this to "custom" provides hook's declaration
|
||||
only and expects the application to implement it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user