]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
macro: Adds BRIDGE_VLAN_ID_MAX constant
authorThomas Parrott <thomas.parrott@canonical.com>
Thu, 4 Jun 2020 16:02:03 +0000 (17:02 +0100)
committerThomas Parrott <thomas.parrott@canonical.com>
Mon, 8 Jun 2020 12:27:07 +0000 (13:27 +0100)
Signed-off-by: Thomas Parrott <thomas.parrott@canonical.com>
src/lxc/macro.h

index 7ff0b77acd085197525ed0eaaf280cba0508257d..a3cb538d1476fa341d1e2b29c82f3c1094737b6c 100644 (file)
@@ -384,6 +384,10 @@ extern int __build_bug_on_failed;
 #define BRIDGE_VLAN_NONE -1 /* Bridge VLAN option set to "none". */
 #endif
 
+#ifndef BRIDGE_VLAN_ID_MAX
+#define BRIDGE_VLAN_ID_MAX 4094 /* Bridge VLAN MAX VLAN ID. */
+#endif
+
 #ifndef BRIDGE_FLAGS_MASTER
 #define BRIDGE_FLAGS_MASTER 1 /* Bridge command to/from master */
 #endif