From: Thomas Parrott Date: Wed, 3 Jun 2020 16:44:55 +0000 (+0100) Subject: macro: Adds bridge VLAN constants X-Git-Tag: lxc-5.0.0~422^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59315a06819e42f0e7f29c294ce0625ed4a616c6;p=thirdparty%2Flxc.git macro: Adds bridge VLAN constants Signed-off-by: Thomas Parrott --- 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,