From: Vincent Bernat Date: Sat, 1 Feb 2020 22:45:29 +0000 (+0100) Subject: include: don't use __kernel_sa_family_t X-Git-Tag: 1.0.5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0994188ff6a64fc8bf028d43b0eb70c259d0a990;p=thirdparty%2Flldpd.git include: don't use __kernel_sa_family_t It's not compatible with older kernels. --- diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 0b2c29bd..8209dbe7 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h @@ -35,7 +35,7 @@ #define MAX_LINKS 32 struct sockaddr_nl { - __kernel_sa_family_t nl_family; /* AF_NETLINK */ + unsigned short nl_family; /* AF_NETLINK */ unsigned short nl_pad; /* zero */ __u32 nl_pid; /* port ID */ __u32 nl_groups; /* multicast groups mask */ diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 8c1d600b..643e4754 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -388,12 +388,6 @@ struct rtnexthop { #define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len)) #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) -/* RTA_VIA */ -struct rtvia { - __kernel_sa_family_t rtvia_family; - __u8 rtvia_addr[0]; -}; - /* RTM_CACHEINFO */ struct rta_cacheinfo {