From 59315a06819e42f0e7f29c294ce0625ed4a616c6 Mon Sep 17 00:00:00 2001 From: Thomas Parrott Date: Wed, 3 Jun 2020 17:44:55 +0100 Subject: [PATCH] macro: Adds bridge VLAN constants Signed-off-by: Thomas Parrott --- src/lxc/macro.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/lxc/macro.h b/src/lxc/macro.h index 7b2ad79ed..50cbb3434 100644 --- a/src/lxc/macro.h +++ b/src/lxc/macro.h @@ -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, -- 2.47.2