]> git.meshlink.io Git - catta/blobdiff - avahi-core/iface-linux.c
Remove C Nokia notice that actually remained from the copyright boilerplate
[catta] / avahi-core / iface-linux.c
index 910000da214be039871a9b85416d5f626da18ae7..c8ed9e05c6e913a58b7a9e9c30f4690b4c513a05 100644 (file)
 #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;