From: Yu Watanabe Date: Thu, 11 Nov 2021 03:49:25 +0000 (+0900) Subject: sd-netlink: fix type of NDA_LLADDR attribute X-Git-Tag: v250-rc1~307^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c990101f239672cbdff1e237ac371fdc052b62aa;p=thirdparty%2Fsystemd.git sd-netlink: fix type of NDA_LLADDR attribute --- diff --git a/src/libsystemd/sd-netlink/netlink-types-rtnl.c b/src/libsystemd/sd-netlink/netlink-types-rtnl.c index 85a6c793966..624422eea27 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 },