]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
netlink: add nexthop related types 18629/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 14 Feb 2021 17:38:28 +0000 (02:38 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Feb 2021 16:16:42 +0000 (01:16 +0900)
src/libsystemd/sd-netlink/netlink-types.c

index ec1100894eafa5e2111502511c735e4c88d15e16..78a3e8f973923e9f408c4d4b7f59fec5112dc654 100644 (file)
@@ -805,8 +805,16 @@ static const NLTypeSystem rtnl_routing_policy_rule_type_system = {
 
 static const NLType rtnl_nexthop_types[] = {
         [NHA_ID]                  = { .type = NETLINK_TYPE_U32 },
+        [NHA_GROUP]               = { /* array of struct nexthop_grp */ },
+        [NHA_GROUP_TYPE]          = { .type = NETLINK_TYPE_U16 },
+        [NHA_BLACKHOLE]           = { .type = NETLINK_TYPE_FLAG },
         [NHA_OIF]                 = { .type = NETLINK_TYPE_U32 },
         [NHA_GATEWAY]             = { .type = NETLINK_TYPE_IN_ADDR },
+        [NHA_ENCAP_TYPE]          = { .type = NETLINK_TYPE_U16 },
+        [NHA_ENCAP]               = { .type = NETLINK_TYPE_NESTED },
+        [NHA_GROUPS]              = { .type = NETLINK_TYPE_FLAG },
+        [NHA_MASTER]              = { .type = NETLINK_TYPE_U32 },
+        [NHA_FDB]                 = { .type = NETLINK_TYPE_FLAG },
 };
 
 static const NLTypeSystem rtnl_nexthop_type_system = {