]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
macro: Adds bridge VLAN constants
authorThomas Parrott <thomas.parrott@canonical.com>
Wed, 3 Jun 2020 16:44:55 +0000 (17:44 +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 7b2ad79edd27af13a642233f819de076079101f3..50cbb3434131f580807536f4634587f0d2a0c208 100644 (file)
@@ -380,6 +380,26 @@ extern int __build_bug_on_failed;
 #define IPVLAN_ISOLATION_VEPA 2
 #endif
 
+#ifndef BRIDGE_FLAGS_MASTER
+#define BRIDGE_FLAGS_MASTER 1 /* Bridge command to/from master */
+#endif
+
+#ifndef BRIDGE_VLAN_INFO_PVID
+#define BRIDGE_VLAN_INFO_PVID (1<<1) /* VLAN is PVID, ingress untagged */
+#endif
+
+#ifndef BRIDGE_VLAN_INFO_UNTAGGED
+#define BRIDGE_VLAN_INFO_UNTAGGED (1<<2) /* VLAN egresses untagged */
+#endif
+
+#ifndef IFLA_BRIDGE_FLAGS
+#define IFLA_BRIDGE_FLAGS 0
+#endif
+
+#ifndef IFLA_BRIDGE_VLAN_INFO
+#define IFLA_BRIDGE_VLAN_INFO 2
+#endif
+
 /* Attributes of RTM_NEWNSID/RTM_GETNSID messages */
 enum {
        __LXC_NETNSA_NONE,