mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Adding also our copy of struct rtvia.
This commit is contained in:
parent
54635f435a
commit
97e48b6a18
@ -219,6 +219,7 @@ esac
|
|||||||
AC_CHECK_HEADER(syslog.h, [AC_DEFINE(HAVE_SYSLOG)])
|
AC_CHECK_HEADER(syslog.h, [AC_DEFINE(HAVE_SYSLOG)])
|
||||||
AC_CHECK_HEADER(alloca.h, [AC_DEFINE(HAVE_ALLOCA_H)])
|
AC_CHECK_HEADER(alloca.h, [AC_DEFINE(HAVE_ALLOCA_H)])
|
||||||
AC_CHECK_HEADER([linux/lwtunnel.h], [AC_DEFINE(HAVE_LWTUNNEL)])
|
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_MSG_CHECKING(whether 'struct sockaddr' has sa_len)
|
||||||
AC_TRY_COMPILE([#include <sys/types.h>
|
AC_TRY_COMPILE([#include <sys/types.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -77,4 +77,7 @@
|
|||||||
/* We have linux lwtunnel */
|
/* We have linux lwtunnel */
|
||||||
#undef HAVE_LWTUNNEL
|
#undef HAVE_LWTUNNEL
|
||||||
|
|
||||||
|
/* We have struct rtvia */
|
||||||
|
#undef HAVE_STRUCT_RTVIA
|
||||||
|
|
||||||
#define CONFIG_PATH ?
|
#define CONFIG_PATH ?
|
||||||
|
@ -60,6 +60,13 @@
|
|||||||
#define RTA_VIA 18
|
#define RTA_VIA 18
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_STRUCT_RTVIA
|
||||||
|
struct rtvia {
|
||||||
|
__kernel_sa_family_t rtvia_family;
|
||||||
|
__u8 rtvia_addr[0];
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef RTA_NEWDST
|
#ifndef RTA_NEWDST
|
||||||
#define RTA_NEWDST 19
|
#define RTA_NEWDST 19
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user