aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_netlink_route_arm.const
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-01-07 07:27:40 +0100
committerDmitry Vyukov <dvyukov@google.com>2020-01-07 10:02:10 +0100
commita0f466387dbca955f3681d7a163a5af174df0a4b (patch)
treede6fc306bc067b86712b09d377f9dac356ee5e5f /sys/linux/socket_netlink_route_arm.const
parentd2bde102ff975f30067203b5d039174d54a1b701 (diff)
sys/linux: fix 2 netlink data layout bugs
1. Turns out that NLA_F_NESTED is actually used and checked (nla_parse_nested checks it, while nla_parse_nested_deprecated does not). Similarly, ipset extensively checks NLA_F_NET_BYTEORDER. So we need these bits. 2. nla_len must not account for the trailing alighnment padding. This means we set wrong len for payloads that are not multiple of 4 (int8/int16/strings/arrays/some structs/etc).
Diffstat (limited to 'sys/linux/socket_netlink_route_arm.const')
-rw-r--r--sys/linux/socket_netlink_route_arm.const4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/linux/socket_netlink_route_arm.const b/sys/linux/socket_netlink_route_arm.const
index 131a743d6..0d7cc5623 100644
--- a/sys/linux/socket_netlink_route_arm.const
+++ b/sys/linux/socket_netlink_route_arm.const
@@ -219,6 +219,9 @@ IFLA_HSR_VERSION = 6
IFLA_IFALIAS = 20
IFLA_IFNAME = 3
IFLA_IF_NETNSID = 46
+IFLA_INET6_ADDR_GEN_MODE = 8
+IFLA_INET6_TOKEN = 7
+IFLA_INET_CONF = 1
IFLA_INFO_DATA = 2
IFLA_INFO_KIND = 1
IFLA_INFO_SLAVE_DATA = 5
@@ -322,6 +325,7 @@ IFLA_XFRM_IF_ID = 2
IFLA_XFRM_LINK = 1
IPPROTO_IPIP = 4
IPPROTO_IPV6 = 41
+IPV4_DEVCONF_MAX = 32
IPVLAN_F_PRIVATE = 1
IPVLAN_F_VEPA = 2
IPVLAN_MODE_L2 = 0