aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorAlbert van der Linde <alinde@google.com>2020-07-20 10:17:36 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-07-22 16:28:44 +0200
commit35be432a74629d290073a5c1fb8a5818e0f2beee (patch)
tree0bbb4b00c62b738626c179c488c9e8406aaa0658 /sys/linux
parentceb0013c7f655bd907ceda6f4c5794a7c3e299f2 (diff)
sys/linux: add descriptions for RTM_(NEW|DEL|GET)VLAN
https://elixir.bootlin.com/linux/latest/source/net/bridge/br_vlan.c#L2045
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/socket_netlink_route.txt41
-rw-r--r--sys/linux/socket_netlink_route_386.const24
-rw-r--r--sys/linux/socket_netlink_route_amd64.const24
-rw-r--r--sys/linux/socket_netlink_route_arm.const24
-rw-r--r--sys/linux/socket_netlink_route_arm64.const24
-rw-r--r--sys/linux/socket_netlink_route_mips64le.const24
-rw-r--r--sys/linux/socket_netlink_route_ppc64le.const24
-rw-r--r--sys/linux/socket_netlink_route_riscv64.const24
-rw-r--r--sys/linux/socket_netlink_route_s390x.const24
9 files changed, 233 insertions, 0 deletions
diff --git a/sys/linux/socket_netlink_route.txt b/sys/linux/socket_netlink_route.txt
index c9b50fecf..168e72a4b 100644
--- a/sys/linux/socket_netlink_route.txt
+++ b/sys/linux/socket_netlink_route.txt
@@ -10,6 +10,7 @@ include <uapi/linux/ip.h>
include <uapi/linux/if_link.h>
include <uapi/linux/if_addr.h>
include <uapi/linux/if_addrlabel.h>
+include <uapi/linux/if_bridge.h>
include <uapi/linux/if_vlan.h>
include <uapi/linux/netlink.h>
include <uapi/linux/netconf.h>
@@ -92,6 +93,9 @@ netlink_msg_route [
bridge_getlink netlink_msg[RTM_GETLINK, ifinfomsg[AF_BRIDGE], ifla_policy]
bridge_setlink netlink_msg[RTM_SETLINK, ifinfomsg[AF_BRIDGE], ifla_policy]
bridge_dellink netlink_msg[RTM_DELLINK, ifinfomsg[AF_BRIDGE], ifla_policy]
+ bridge_getvlan netlink_msg[RTM_GETVLAN, br_vlan_msg[AF_BRIDGE], br_vlan_db_dump_pol]
+ bridge_newvlan netlink_msg[RTM_NEWVLAN, br_vlan_msg[AF_BRIDGE], br_vlan_db_policy_container]
+ bridge_delvlan netlink_msg[RTM_DELVLAN, br_vlan_msg[AF_BRIDGE], br_vlan_db_policy_container]
RTM_NEWNSID netlink_msg[RTM_NEWNSID, rtgenmsg[AF_UNSPEC], rtnl_net_policy]
RTM_GETNSID netlink_msg[RTM_GETNSID, rtgenmsg[AF_UNSPEC], rtnl_net_policy]
@@ -134,6 +138,13 @@ type ifaddrlblmsg[FAMILY] {
ifal_seq int32
}
+type br_vlan_msg[FAMILY] {
+ family const[FAMILY, int8]
+ reserved1 const[0, int8]
+ reserved2 const[0, int16]
+ ifindex ifindex
+}
+
type rtmsg[FAMILY] {
rtm_family const[FAMILY, int8]
rtm_dst_len flags[rtm_addr_len, int8]
@@ -779,6 +790,32 @@ ifa_cacheinfo {
tstamp int32
}
+br_vlan_db_dump_pol [
+ BRIDGE_VLANDB_DUMP_FLAGS nlattr[BRIDGE_VLANDB_DUMP_FLAGS, flags[br_vlan_dumpflags, int32]]
+]
+
+br_vlan_db_policy_container [
+ BRIDGE_VLANDB_ENTRY nlnest[BRIDGE_VLANDB_ENTRY, br_vlan_db_policy]
+] [varlen]
+
+br_vlan_db_policy [
+ BRIDGE_VLANDB_ENTRY_INFO nlattr[BRIDGE_VLANDB_ENTRY_INFO, bridge_vlan_info]
+ BRIDGE_VLANDB_ENTRY_RANGE nlattr[BRIDGE_VLANDB_ENTRY_RANGE, int16[BRIDGE_VLAN_INFO_RANGE_BEGIN:BRIDGE_VLAN_INFO_RANGE_END]]
+ BRIDGE_VLANDB_ENTRY_STATE nlattr[BRIDGE_VLANDB_ENTRY_STATE, flags[br_vlan_state_options, int8]]
+ BRIDGE_VLANDB_ENTRY_TUNNEL_INFO nlnest[BRIDGE_VLANDB_ENTRY_TUNNEL_INFO, br_vlandb_tinfo_pol]
+] [varlen]
+
+
+bridge_vlan_info {
+ flags flags[br_vlan_info_flags, int16]
+ vid int16[0:4]
+}
+
+br_vlandb_tinfo_pol [
+ BRIDGE_VLANDB_TINFO_ID nlattr[BRIDGE_VLANDB_TINFO_ID, int32]
+ BRIDGE_VLANDB_TINFO_CMD nlattr[BRIDGE_VLANDB_TINFO_CMD, flags[br_vlan_tinfo_cmd, int32]]
+] [varlen]
+
devconf_ipv4_policy [
NETCONFA_IFINDEX nlattr[NETCONFA_IFINDEX, ifindex]
NETCONFA_FORWARDING nlattr[NETCONFA_FORWARDING, int32]
@@ -960,3 +997,7 @@ rtm_addr_len = 0, 16, 20, 32, 128
filter_mask = IFLA_STATS_UNSPEC, IFLA_STATS_LINK_64, IFLA_STATS_LINK_XSTATS, IFLA_STATS_LINK_XSTATS_SLAVE, IFLA_STATS_LINK_OFFLOAD_XSTATS, IFLA_STATS_AF_SPEC
tunnel_encap_types = TUNNEL_ENCAP_NONE, TUNNEL_ENCAP_FOU, TUNNEL_ENCAP_GUE, TUNNEL_ENCAP_MPLS
ifal_labels = 0, 1, 2, 3, 4, 5, 6, 7, 11, 12
+br_vlan_dumpflags = BRIDGE_VLANDB_DUMPF_STATS
+br_vlan_state_options = BR_STATE_DISABLED, BR_STATE_LISTENING, BR_STATE_LEARNING, BR_STATE_FORWARDING, BR_STATE_BLOCKING
+br_vlan_info_flags = BRIDGE_VLAN_INFO_MASTER, BRIDGE_VLAN_INFO_PVID, BRIDGE_VLAN_INFO_UNTAGGED, BRIDGE_VLAN_INFO_RANGE_BEGIN, BRIDGE_VLAN_INFO_RANGE_END, BRIDGE_VLAN_INFO_BRENTRY, BRIDGE_VLAN_INFO_ONLY_OPTS
+br_vlan_tinfo_cmd = RTM_SETLINK, RTM_DELLINK
diff --git a/sys/linux/socket_netlink_route_386.const b/sys/linux/socket_netlink_route_386.const
index 07e784132..734d1b4e3 100644
--- a/sys/linux/socket_netlink_route_386.const
+++ b/sys/linux/socket_netlink_route_386.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_amd64.const b/sys/linux/socket_netlink_route_amd64.const
index b1d38f470..4d8638c24 100644
--- a/sys/linux/socket_netlink_route_amd64.const
+++ b/sys/linux/socket_netlink_route_amd64.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_arm.const b/sys/linux/socket_netlink_route_arm.const
index 3e37ebf5e..03f72a18f 100644
--- a/sys/linux/socket_netlink_route_arm.const
+++ b/sys/linux/socket_netlink_route_arm.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_arm64.const b/sys/linux/socket_netlink_route_arm64.const
index bc10c8a12..0b0454956 100644
--- a/sys/linux/socket_netlink_route_arm64.const
+++ b/sys/linux/socket_netlink_route_arm64.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_mips64le.const b/sys/linux/socket_netlink_route_mips64le.const
index a0044f031..097139ecb 100644
--- a/sys/linux/socket_netlink_route_mips64le.const
+++ b/sys/linux/socket_netlink_route_mips64le.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_ppc64le.const b/sys/linux/socket_netlink_route_ppc64le.const
index 67270d36f..4e91ac4dd 100644
--- a/sys/linux/socket_netlink_route_ppc64le.const
+++ b/sys/linux/socket_netlink_route_ppc64le.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_riscv64.const b/sys/linux/socket_netlink_route_riscv64.const
index bc10c8a12..0b0454956 100644
--- a/sys/linux/socket_netlink_route_riscv64.const
+++ b/sys/linux/socket_netlink_route_riscv64.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128
diff --git a/sys/linux/socket_netlink_route_s390x.const b/sys/linux/socket_netlink_route_s390x.const
index 07e784132..734d1b4e3 100644
--- a/sys/linux/socket_netlink_route_s390x.const
+++ b/sys/linux/socket_netlink_route_s390x.const
@@ -6,6 +6,27 @@ AF_INET6 = 10
AF_MPLS = 28
AF_NETLINK = 16
AF_UNSPEC = 0
+BRIDGE_VLANDB_DUMPF_STATS = 1
+BRIDGE_VLANDB_DUMP_FLAGS = 1
+BRIDGE_VLANDB_ENTRY = 1
+BRIDGE_VLANDB_ENTRY_INFO = 1
+BRIDGE_VLANDB_ENTRY_RANGE = 2
+BRIDGE_VLANDB_ENTRY_STATE = 3
+BRIDGE_VLANDB_ENTRY_TUNNEL_INFO = 4
+BRIDGE_VLANDB_TINFO_CMD = 2
+BRIDGE_VLANDB_TINFO_ID = 1
+BRIDGE_VLAN_INFO_BRENTRY = 32
+BRIDGE_VLAN_INFO_MASTER = 1
+BRIDGE_VLAN_INFO_ONLY_OPTS = 64
+BRIDGE_VLAN_INFO_PVID = 2
+BRIDGE_VLAN_INFO_RANGE_BEGIN = 8
+BRIDGE_VLAN_INFO_RANGE_END = 16
+BRIDGE_VLAN_INFO_UNTAGGED = 4
+BR_STATE_BLOCKING = 4
+BR_STATE_DISABLED = 0
+BR_STATE_FORWARDING = 3
+BR_STATE_LEARNING = 2
+BR_STATE_LISTENING = 1
CGW_CRC8PRF_16U8 = 2
CGW_CRC8PRF_1U8 = 1
CGW_CRC8PRF_SFFID_XOR = 3
@@ -460,6 +481,7 @@ RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
RTM_DELROUTE = 25
RTM_DELRULE = 33
+RTM_DELVLAN = 113
RTM_F_CLONED = 512
RTM_F_EQUALIZE = 1024
RTM_F_FIB_MATCH = 8192
@@ -478,6 +500,7 @@ RTM_GETNSID = 90
RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
+RTM_GETVLAN = 114
RTM_NEWADDR = 20
RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
@@ -486,6 +509,7 @@ RTM_NEWNEIGH = 28
RTM_NEWNSID = 88
RTM_NEWROUTE = 24
RTM_NEWRULE = 32
+RTM_NEWVLAN = 112
RTM_SETLINK = 19
RTM_SETNEIGHTBL = 67
RTNL_FAMILY_IPMR = 128