summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-11-11 12:49:25 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-11-11 12:49:42 +0900
commitc990101f239672cbdff1e237ac371fdc052b62aa (patch)
treea7a387f7894f88a807f22167541e2dea44e6d825
parenta704137c20fcde3fa9077832d9ee29b89d6217e5 (diff)
downloadsystemd-c990101f239672cbdff1e237ac371fdc052b62aa.tar.gz
sd-netlink: fix type of NDA_LLADDR attribute
-rw-r--r--src/libsystemd/sd-netlink/netlink-types-rtnl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/netlink-types-rtnl.c b/src/libsystemd/sd-netlink/netlink-types-rtnl.c
index 85a6c79396..624422eea2 100644
--- a/src/libsystemd/sd-netlink/netlink-types-rtnl.c
+++ b/src/libsystemd/sd-netlink/netlink-types-rtnl.c
@@ -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 },