This patch adds for config menu for LwIP VLAN options.
Change-Id: I122626c33e9a992f54f8e63d8f01e6178dd39b81
Signed-off-by: EunBong Song <eunb.song@samsung.com>
CONFIG_NET_LWIP_IP_REASS_MAX_PBUFS=20
CONFIG_NET_LWIP_IP_FRAG=y
CONFIG_NET_LWIP_IP_DEFAULT_TTL=255
+# CONFIG_NET_LWIP_VLAN is not set
CONFIG_NET_SECURITY_TLS=y
# CONFIG_TLS_WITH_SSS is not set
CONFIG_NET_NOINTS=y
/* ---------- ARP options ---------- */
+/* ---------- VLAN options ---------- */
+#ifdef CONFIG_NET_LWIP_VLAN
+#define ETHARP_SUPPORT_VLAN 1
+#ifdef NET_LWIP_VLAN_CHECK
+#define ETHARP_VLAN_CHECK CONFIG_NET_LWIP_VLAN_CHECK_ID
+#endif
+#else
+#define ETHARP_SUPPORT_VLAN 0
+#endif
+/* ---------- VLAN options ---------- */
+
/* ---------- IP options ---------- */
#ifdef CONFIG_NET_LWIP_IP_FORWARD
endmenu #IP options
+config NET_LWIP_VLAN
+ bool "Support VLAN"
+ default n
+ ---help---
+ support receiving ethernet packets with VLAN header.
+ Additionally, you can define ETHARP_VLAN_CHECK to an u16_t VLAN ID to check.
+ If VLAN_CHECK is defined, only VLAN-traffic for this VLAN is accepted.
+
+config NET_LWIP_VLAN_CHECK
+ bool "Check VLAN ID for receiviing packet"
+ default n
+ depends on NET_LWIP_VLAN
+
+config NET_LWIP_VLAN_CHECK_ID
+ int "VLAN ID for receiviing packet"
+ default 1
+ depends on NET_LWIP_VLAN_CHECK
+
endmenu #LwIP options