]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Adding also our copy of struct rtvia.
authorJan Moskyto Matejka <mq@ucw.cz>
Wed, 5 Apr 2017 12:26:37 +0000 (14:26 +0200)
committerJan Moskyto Matejka <mq@ucw.cz>
Wed, 12 Apr 2017 14:04:22 +0000 (16:04 +0200)
configure.in
sysdep/autoconf.h.in
sysdep/linux/netlink.c

index c37a0264ed9a4c8e8146341bc9be1fc2d8425db7..a661734a3309483a8ae90693e8c9e5757aa32d50 100644 (file)
@@ -219,6 +219,7 @@ esac
 AC_CHECK_HEADER(syslog.h, [AC_DEFINE(HAVE_SYSLOG)])
 AC_CHECK_HEADER(alloca.h, [AC_DEFINE(HAVE_ALLOCA_H)])
 AC_CHECK_HEADER([linux/lwtunnel.h], [AC_DEFINE(HAVE_LWTUNNEL)])
+AC_CHECK_MEMBERS([struct rtvia.rtvia_family], [AC_DEFINE(HAVE_STRUCT_RTVIA)],,[#include <linux/rtnetlink.h>])
 AC_MSG_CHECKING(whether 'struct sockaddr' has sa_len)
 AC_TRY_COMPILE([#include <sys/types.h>
   #include <sys/socket.h>
index 6f58084683c183a6b0f73abc755443cfd4a98f67..fbaba2ce1532a8eac29e98c027aa9768bbae1ca7 100644 (file)
@@ -77,4 +77,7 @@
 /* We have linux lwtunnel */
 #undef HAVE_LWTUNNEL
 
+/* We have struct rtvia */
+#undef HAVE_STRUCT_RTVIA
+
 #define CONFIG_PATH ?
index bed97331a7d2ff7a33ed2c0af5dd105b5e1227b4..083a8d90e87c340223c47b3d7b1aea114da3d9ea 100644 (file)
 #define RTA_VIA         18
 #endif
 
+#ifndef HAVE_STRUCT_RTVIA
+struct rtvia {
+       __kernel_sa_family_t    rtvia_family;
+       __u8                    rtvia_addr[0];
+};
+#endif
+
 #ifndef RTA_NEWDST
 #define RTA_NEWDST  19
 #endif