]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
netlink: set attribute size of IFLA_STATS and IFLA_STATS64
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 24 May 2019 15:37:00 +0000 (00:37 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 1 Jun 2019 01:24:47 +0000 (10:24 +0900)
src/libsystemd/sd-netlink/netlink-types.c

index 35ca843569d1a14f4f50b13dd66169596a8520d7..0ac3d1664b2ded813aaa758f31e95214d6667b70 100644 (file)
@@ -519,7 +519,9 @@ static const NLType rtnl_link_types[] = {
         [IFLA_LINK]             = { .type = NETLINK_TYPE_U32 },
 /*
         [IFLA_QDISC],
-        [IFLA_STATS],
+*/
+        [IFLA_STATS]            = { .size = sizeof(struct rtnl_link_stats) },
+/*
         [IFLA_COST],
         [IFLA_PRIORITY],
 */
@@ -541,7 +543,9 @@ static const NLType rtnl_link_types[] = {
 /*
         [IFLA_NUM_VF],
         [IFLA_VFINFO_LIST]      = {. type = NETLINK_TYPE_NESTED, },
-        [IFLA_STATS64],
+*/
+        [IFLA_STATS64]          = { .size = sizeof(struct rtnl_link_stats64) },
+/*
         [IFLA_VF_PORTS]         = { .type = NETLINK_TYPE_NESTED },
         [IFLA_PORT_SELF]        = { .type = NETLINK_TYPE_NESTED },
 */