Merge branch 'feature/add_ETHARP_SUPPORT_VLAN' into 'release/v3.3'
lw-ip:add feature ETHARP SUPPORT VLAN See merge request espressif/esp-idf!7399
This commit is contained in:
commit
fdceac415b
2 changed files with 21 additions and 0 deletions
|
@ -16,6 +16,16 @@ menu "LWIP"
|
||||||
Please make sure you fully understand the impact of this feature before
|
Please make sure you fully understand the impact of this feature before
|
||||||
enabling it.
|
enabling it.
|
||||||
|
|
||||||
|
config ETHARP_SUPPORT_VLAN
|
||||||
|
bool "Support receiving and sending ethernet packets with VLAN header"
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
ETHARP_SUPPORT_VLAN==1: support receiving and sending ethernet packets with
|
||||||
|
VLAN header. See the description of LWIP_HOOK_VLAN_CHECK and LWIP_HOOK_VLAN_SET
|
||||||
|
hooks to check/set VLAN headers.
|
||||||
|
If ETHARP_VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted.
|
||||||
|
If ETHARP_VLAN_CHECK is not defined, all traffic is accepted.
|
||||||
|
|
||||||
config LWIP_IRAM_OPTIMIZATION
|
config LWIP_IRAM_OPTIMIZATION
|
||||||
bool "Enable LWIP IRAM optimization"
|
bool "Enable LWIP IRAM optimization"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -738,6 +738,17 @@
|
||||||
*/
|
*/
|
||||||
#define ETHARP_TRUST_IP_MAC CONFIG_LWIP_ETHARP_TRUST_IP_MAC
|
#define ETHARP_TRUST_IP_MAC CONFIG_LWIP_ETHARP_TRUST_IP_MAC
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ETHARP_SUPPORT_VLAN==1: support receiving and sending ethernet packets with
|
||||||
|
* VLAN header. See the description of LWIP_HOOK_VLAN_CHECK and
|
||||||
|
* LWIP_HOOK_VLAN_SET hooks to check/set VLAN headers.
|
||||||
|
* Additionally, you can define ETHARP_VLAN_CHECK to an u16_t VLAN ID to check.
|
||||||
|
* If ETHARP_VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted.
|
||||||
|
* If ETHARP_VLAN_CHECK is not defined, all traffic is accepted.
|
||||||
|
* Alternatively, define a function/define ETHARP_VLAN_CHECK_FN(eth_hdr, vlan)
|
||||||
|
* that returns 1 to accept a packet or 0 to drop a packet.
|
||||||
|
*/
|
||||||
|
#define ETHARP_SUPPORT_VLAN CONFIG_ETHARP_SUPPORT_VLAN
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* POSIX I/O functions are mapped to LWIP via the VFS layer
|
* POSIX I/O functions are mapped to LWIP via the VFS layer
|
||||||
|
|
Loading…
Reference in a new issue