Skip to contentSkip to conversation

vlan: add compile-time option ENABLE_VLAN_TAGGING

PATCH In review Mike Auty 1 participant 1 message Apr 3, 2016

lore
Share & tools
lore

Mike Auty

author
#0 lore raw

PATCH 1/7 vlan: add compile-time option ENABLE_VLAN_TAGGING

The option can be disabled via "./configure --disable-vlan-tagging".

Patch authored by Fabian Knittel <[email protected]...>.

---
 configure.ac | 10 ++++++++++
 1 file changed, 10 insertions(+)
configure.ac +10 -0
index b75d51f..89556c4 100644
@@ -271,6 +271,12 @@ AC_ARG_ENABLE(
 	[enable_async_push="no"]
 )
 
+AC_ARG_ENABLE(vlan-tagging,
+	[  --disable-vlan-tagging  Disable support for 802.1Q-based VLAN tagging],
+	[VLAN_TAGGING="$enableval"],
+	[VLAN_TAGGING="yes"]
+)
+
 AC_ARG_WITH(
 	[special-build],
 	[AS_HELP_STRING([--with-special-build=STRING], [specify special build string])],
@@ -1163,6 +1169,10 @@ if test "${enable_async_push}" = "yes"; then
 	)
 fi
 
+if test "$VLAN_TAGGING" = "yes"; then
+   AC_DEFINE(ENABLE_VLAN_TAGGING, 1, [Enable 802.1Q-based VLAN tagging/untagging])
+fi
+
 CONFIGURE_DEFINES="`set | grep '^enable_.*=' ; set | grep '^with_.*='`"
 AC_DEFINE_UNQUOTED([CONFIGURE_DEFINES], ["`echo ${CONFIGURE_DEFINES}`"], [Configuration settings])
 
Signature · 1 line
2.7.1