]> git.meshlink.io Git - catta/blobdiff - avahi-autoipd/iface-linux.c
* Limit the number of loops in consume_labels() (Closes: #84)
[catta] / avahi-autoipd / iface-linux.c
index 6f2ca1f48e3c2211abf7065ec392719a07c05927..2ad8a61ab53b0992205aab915a4d7db29a58c0cf 100644 (file)
 #include <avahi-common/llist.h>
 #include <avahi-common/malloc.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
+
 #include "iface.h"
 
 static int fd = -1;