diff options
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/autoconf.h.in | 3 | ||||
-rw-r--r-- | sysdep/linux/netlink.c | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/sysdep/autoconf.h.in b/sysdep/autoconf.h.in index 6f580846..fbaba2ce 100644 --- a/sysdep/autoconf.h.in +++ b/sysdep/autoconf.h.in @@ -77,4 +77,7 @@ /* We have linux lwtunnel */ #undef HAVE_LWTUNNEL +/* We have struct rtvia */ +#undef HAVE_STRUCT_RTVIA + #define CONFIG_PATH ? diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index bed97331..083a8d90 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -60,6 +60,13 @@ #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 |