From: Maria Matejka Date: Sun, 22 Jan 2023 12:19:22 +0000 (+0100) Subject: Merge commit '2b7643e1f8ecb0bd4cf9af4183b4fd53b655d19c' into thread-next X-Git-Tag: v3.0-alpha1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=521fec2fdc391ee468fd3f58f994609483e6a6eb;p=thirdparty%2Fbird.git Merge commit '2b7643e1f8ecb0bd4cf9af4183b4fd53b655d19c' into thread-next --- 521fec2fdc391ee468fd3f58f994609483e6a6eb diff --cc sysdep/linux/netlink.c index 288261f52,7f0d47368..0609fde89 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@@ -25,59 -25,9 +25,10 @@@ #include "lib/socket.h" #include "lib/string.h" #include "lib/hash.h" +#include "lib/macro.h" #include "conf/conf.h" - #ifdef CONFIG_LINUX_NETLINK - #include - #include - #include - #include - #endif - #ifdef CONFIG_FREEBSD_NETLINK - #include - #include - #endif - - #ifdef HAVE_MPLS_KERNEL - #include - #endif - - #ifndef MSG_TRUNC /* Hack: Several versions of glibc miss this one :( */ - #define MSG_TRUNC 0x20 - #endif - - #ifndef IFA_FLAGS - #define IFA_FLAGS 8 - #endif - - #ifndef IFF_LOWER_UP - #define IFF_LOWER_UP 0x10000 - #endif - - #ifndef RTA_TABLE - #define RTA_TABLE 15 - #endif - - #ifndef RTA_VIA - #define RTA_VIA 18 - #endif - - #ifndef RTA_NEWDST - #define RTA_NEWDST 19 - #endif - - #ifndef RTA_ENCAP_TYPE - #define RTA_ENCAP_TYPE 21 - #endif - - #ifndef RTA_ENCAP - #define RTA_ENCAP 22 - #endif - - #ifndef NETLINK_GET_STRICT_CHK - #define NETLINK_GET_STRICT_CHK 12 - #endif + #include CONFIG_INCLUDE_NLSYS_H #define krt_ipv4(p) ((p)->af == AF_INET)