aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
diff options
context:
space:
mode:
authorAlbert van der Linde <alinde@google.com>2020-07-20 07:26:58 +0000
committerDmitry Vyukov <dvyukov@google.com>2020-07-22 16:28:44 +0200
commitceb0013c7f655bd907ceda6f4c5794a7c3e299f2 (patch)
tree86941ddd062d4b3bb0d75c1099f71db82a4affba /sys/linux
parentabbd98bb918e392d3fe8bb12c9cbf8bd04e0f6a9 (diff)
sys/linux: add descriptions for RTM_(NEW|DEL|GET)ADDRLABEL
https://elixir.bootlin.com/linux/latest/source/net/ipv6/addrlabel.c#L625
Diffstat (limited to 'sys/linux')
-rw-r--r--sys/linux/socket_netlink_route.txt19
-rw-r--r--sys/linux/socket_netlink_route_386.const5
-rw-r--r--sys/linux/socket_netlink_route_amd64.const5
-rw-r--r--sys/linux/socket_netlink_route_arm.const5
-rw-r--r--sys/linux/socket_netlink_route_arm64.const5
-rw-r--r--sys/linux/socket_netlink_route_mips64le.const5
-rw-r--r--sys/linux/socket_netlink_route_ppc64le.const5
-rw-r--r--sys/linux/socket_netlink_route_riscv64.const5
-rw-r--r--sys/linux/socket_netlink_route_s390x.const5
9 files changed, 59 insertions, 0 deletions
diff --git a/sys/linux/socket_netlink_route.txt b/sys/linux/socket_netlink_route.txt
index bc549ae92..c9b50fecf 100644
--- a/sys/linux/socket_netlink_route.txt
+++ b/sys/linux/socket_netlink_route.txt
@@ -9,6 +9,7 @@ include <uapi/linux/if.h>
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_vlan.h>
include <uapi/linux/netlink.h>
include <uapi/linux/netconf.h>
@@ -72,6 +73,9 @@ netlink_msg_route [
ipv6_newrule netlink_msg[RTM_NEWRULE, fib_rule_hdr[AF_INET6], fib6_rule_policy]
ipv6_delrule netlink_msg[RTM_DELRULE, fib_rule_hdr[AF_INET6], fib6_rule_policy]
ipv6_getrule netlink_msg[RTM_GETRULE, fib_rule_hdr[AF_INET6], void]
+ ipv6_newaddrlabel netlink_msg[RTM_NEWADDRLABEL, ifaddrlblmsg[AF_INET6], ifal_policy]
+ ipv6_deladdrlabel netlink_msg[RTM_DELADDRLABEL, ifaddrlblmsg[AF_INET6], ifal_policy]
+ ipv6_getaddrlabel netlink_msg[RTM_GETADDRLABEL, ifaddrlblmsg[AF_INET6], ifal_policy]
ipmr_newroute netlink_msg[RTM_NEWROUTE, rtmsg[RTNL_FAMILY_IPMR], rtm_ipv4_policy]
ipmr_delroute netlink_msg[RTM_DELROUTE, rtmsg[RTNL_FAMILY_IPMR], rtm_ipv4_policy]
@@ -121,6 +125,15 @@ type ifaddrmsg[FAMILY] {
ifa_index ifindex
}
+type ifaddrlblmsg[FAMILY] {
+ ifal_family const[FAMILY, int8]
+ __ifal_reserved const[0, int8]
+ ifal_prefixlen flags[ifa_prefixlen, int8]
+ ifal_flags const[0, int8]
+ ifal_index ifindex
+ ifal_seq int32
+}
+
type rtmsg[FAMILY] {
rtm_family const[FAMILY, int8]
rtm_dst_len flags[rtm_addr_len, int8]
@@ -210,6 +223,11 @@ inet6_af_policy [
IFLA_INET6_TOKEN nlattr[IFLA_INET6_TOKEN, ipv6_addr]
] [varlen]
+ifal_policy [
+ IFAL_ADDRESS nlattr[IFAL_ADDRESS, ipv6_addr]
+ IFAL_LABEL nlattr[IFAL_LABEL, flags[ifal_labels, int32]]
+] [varlen]
+
type ifla_info_policy_t[TYPE, DATA_TYPE, DATA] {
IFLA_INFO_KIND nlattr[IFLA_INFO_KIND, string[TYPE]]
IFLA_INFO_DATA nlnest[DATA_TYPE, DATA]
@@ -941,3 +959,4 @@ ifa_prefixlen = 0, 1, 8, 16, 24, 31, 32, 56, 63, 64, 120, 128
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
diff --git a/sys/linux/socket_netlink_route_386.const b/sys/linux/socket_netlink_route_386.const
index 7f594a62b..07e784132 100644
--- a/sys/linux/socket_netlink_route_386.const
+++ b/sys/linux/socket_netlink_route_386.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_amd64.const b/sys/linux/socket_netlink_route_amd64.const
index 7d2853825..b1d38f470 100644
--- a/sys/linux/socket_netlink_route_amd64.const
+++ b/sys/linux/socket_netlink_route_amd64.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_arm.const b/sys/linux/socket_netlink_route_arm.const
index f6223987e..3e37ebf5e 100644
--- a/sys/linux/socket_netlink_route_arm.const
+++ b/sys/linux/socket_netlink_route_arm.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_arm64.const b/sys/linux/socket_netlink_route_arm64.const
index 7249d609a..bc10c8a12 100644
--- a/sys/linux/socket_netlink_route_arm64.const
+++ b/sys/linux/socket_netlink_route_arm64.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_mips64le.const b/sys/linux/socket_netlink_route_mips64le.const
index c21257b07..a0044f031 100644
--- a/sys/linux/socket_netlink_route_mips64le.const
+++ b/sys/linux/socket_netlink_route_mips64le.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_ppc64le.const b/sys/linux/socket_netlink_route_ppc64le.const
index 45eb74efe..67270d36f 100644
--- a/sys/linux/socket_netlink_route_ppc64le.const
+++ b/sys/linux/socket_netlink_route_ppc64le.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_riscv64.const b/sys/linux/socket_netlink_route_riscv64.const
index 7249d609a..bc10c8a12 100644
--- a/sys/linux/socket_netlink_route_riscv64.const
+++ b/sys/linux/socket_netlink_route_riscv64.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28
diff --git a/sys/linux/socket_netlink_route_s390x.const b/sys/linux/socket_netlink_route_s390x.const
index 7f594a62b..07e784132 100644
--- a/sys/linux/socket_netlink_route_s390x.const
+++ b/sys/linux/socket_netlink_route_s390x.const
@@ -62,6 +62,8 @@ FR_ACT_UNREACHABLE = 7
FR_ACT_UNSPEC = 0
GSO_MAX_SEGS = 65535
GSO_MAX_SIZE = 65536
+IFAL_ADDRESS = 1
+IFAL_LABEL = 2
IFA_ADDRESS = 1
IFA_BROADCAST = 4
IFA_CACHEINFO = 6
@@ -452,6 +454,7 @@ RTA_TTL_PROPAGATE = 26
RTA_UID = 25
RTA_VIA = 18
RTM_DELADDR = 21
+RTM_DELADDRLABEL = 73
RTM_DELLINK = 17
RTM_DELLINKPROP = 109
RTM_DELNEIGH = 29
@@ -464,6 +467,7 @@ RTM_F_LOOKUP_TABLE = 4096
RTM_F_NOTIFY = 256
RTM_F_PREFIX = 2048
RTM_GETADDR = 22
+RTM_GETADDRLABEL = 74
RTM_GETANYCAST = 62
RTM_GETLINK = 18
RTM_GETMULTICAST = 58
@@ -475,6 +479,7 @@ RTM_GETROUTE = 26
RTM_GETRULE = 34
RTM_GETSTATS = 94
RTM_NEWADDR = 20
+RTM_NEWADDRLABEL = 72
RTM_NEWLINK = 16
RTM_NEWLINKPROP = 108
RTM_NEWNEIGH = 28