]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: add RTA_NH_ID attribute support
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Feb 2021 14:32:12 +0000 (23:32 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 Feb 2021 16:16:10 +0000 (01:16 +0900)
src/libsystemd/sd-netlink/netlink-types.c

index 87ce45b4c92760588b45d1af380c93de4d7110a9..ec1100894eafa5e2111502511c735e4c88d15e16 100644 (file)
@@ -733,14 +733,15 @@ static const NLType rtnl_route_types[] = {
         [RTA_VIA]               = { /* See struct rtvia */ },
         [RTA_NEWDST]            = { .type = NETLINK_TYPE_U32 },
         [RTA_PREF]              = { .type = NETLINK_TYPE_U8 },
-        [RTA_EXPIRES]           = { .type = NETLINK_TYPE_U32 },
         [RTA_ENCAP_TYPE]        = { .type = NETLINK_TYPE_U16 },
         [RTA_ENCAP]             = { .type = NETLINK_TYPE_NESTED }, /* Multiple type systems i.e. LWTUNNEL_ENCAP_MPLS/LWTUNNEL_ENCAP_IP/LWTUNNEL_ENCAP_ILA etc... */
+        [RTA_EXPIRES]           = { .type = NETLINK_TYPE_U32 },
         [RTA_UID]               = { .type = NETLINK_TYPE_U32 },
         [RTA_TTL_PROPAGATE]     = { .type = NETLINK_TYPE_U8 },
         [RTA_IP_PROTO]          = { .type = NETLINK_TYPE_U8 },
         [RTA_SPORT]             = { .type = NETLINK_TYPE_U16 },
         [RTA_DPORT]             = { .type = NETLINK_TYPE_U16 },
+        [RTA_NH_ID]             = { .type = NETLINK_TYPE_U32 },
 };
 
 static const NLTypeSystem rtnl_route_type_system = {