]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-netlink: fix type of NDA_LLADDR attribute
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Nov 2021 03:49:25 +0000 (12:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Nov 2021 03:49:42 +0000 (12:49 +0900)
src/libsystemd/sd-netlink/netlink-types-rtnl.c

index 85a6c7939662d47eea185f509988e0341e91672e..624422eea27a4a3d6117ac79089f054d1881edff 100644 (file)
@@ -968,7 +968,7 @@ DEFINE_TYPE_SYSTEM(rtnl_route);
 
 static const NLType rtnl_neigh_types[] = {
         [NDA_DST]               = { .type = NETLINK_TYPE_IN_ADDR },
-        [NDA_LLADDR]            = { /* struct ether_addr, struct in_addr, or struct in6_addr */ },
+        [NDA_LLADDR]            = { .type = NETLINK_TYPE_ETHER_ADDR },
         [NDA_CACHEINFO]         = { .type = NETLINK_TYPE_CACHE_INFO, .size = sizeof(struct nda_cacheinfo) },
         [NDA_PROBES]            = { .type = NETLINK_TYPE_U32 },
         [NDA_VLAN]              = { .type = NETLINK_TYPE_U16 },