]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
include: don't use __kernel_sa_family_t
authorVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 22:45:29 +0000 (23:45 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sat, 1 Feb 2020 22:50:07 +0000 (23:50 +0100)
It's not compatible with older kernels.

include/linux/netlink.h
include/linux/rtnetlink.h

index 0b2c29bd081fa152647e7e5280a12c2671aff807..8209dbe7ed9611313968a800236bb5434c1c4a30 100644 (file)
@@ -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 */
index 8c1d600bfa332e0c935730c959634ad48dfe767f..643e475408e4f9338392d8cf0f2913c73df2b0e0 100644 (file)
@@ -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 {