]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: fix type of RTA_VIA
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 13 Aug 2020 16:50:45 +0000 (01:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 7 Oct 2020 13:22:10 +0000 (15:22 +0200)
src/libsystemd/sd-netlink/netlink-types.c

index 9c9471eadcfdef22516235671087a95cc4e4c2e9..5f5a1558a101d4d0041dfbdd2e796bb42fbec9be 100644 (file)
@@ -716,7 +716,7 @@ static const NLType rtnl_route_types[] = {
         [RTA_TABLE]             = { .type = NETLINK_TYPE_U32 },
         [RTA_MARK]              = { .type = NETLINK_TYPE_U32 },
         [RTA_MFC_STATS]         = { .type = NETLINK_TYPE_U64 },
-        [RTA_VIA]               = { .type = NETLINK_TYPE_U32 },
+        [RTA_VIA]               = { /* See struct rtvia */ },
         [RTA_NEWDST]            = { .type = NETLINK_TYPE_U32 },
         [RTA_PREF]              = { .type = NETLINK_TYPE_U8 },
         [RTA_EXPIRES]           = { .type = NETLINK_TYPE_U32 },