summaryrefslogtreecommitdiffstats
path: root/avahi-core/iface-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-core/iface-linux.c')
-rw-r--r--avahi-core/iface-linux.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/avahi-core/iface-linux.c b/avahi-core/iface-linux.c
index 910000d..c8ed9e0 100644
--- a/avahi-core/iface-linux.c
+++ b/avahi-core/iface-linux.c
@@ -34,6 +34,16 @@
#include "iface.h"
#include "iface-linux.h"
+#ifndef IFLA_RTA
+#include <linux/if_addr.h>
+#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
+#endif
+
+#ifndef IFA_RTA
+#include <linux/if_addr.h>
+#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
+#endif
+
static int netlink_list_items(AvahiNetlink *nl, uint16_t type, unsigned *ret_seq) {
struct nlmsghdr *n;
struct rtgenmsg *gen;