From 37b2be93e63ceff95698f24cd91cb11774eb621c Mon Sep 17 00:00:00 2001 From: Trent Lloyd Date: Mon, 11 Dec 2006 09:34:00 +0000 Subject: * Revert previous patch to check nlmsg_pid as it is bogus and breaks in many cases, notably when using NetworkManager * Replace with new SO_PASSCRED-based check of the sending UID, which seems to work better * Apply for for 2.6.19+ where IFA_RTA / IFLA_RTA is no longer defined * Mild fix to some doxygen docs for avahi-common/address.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1336 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-autoipd/iface-linux.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'avahi-autoipd') diff --git a/avahi-autoipd/iface-linux.c b/avahi-autoipd/iface-linux.c index 6f2ca1f..13d2895 100644 --- a/avahi-autoipd/iface-linux.c +++ b/avahi-autoipd/iface-linux.c @@ -40,6 +40,15 @@ #include #include +#include +#ifndef IFLA_RTA +#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg)))) +#endif + +#ifndef IFA_RTA +#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg)))) +#endif + #include "iface.h" static int fd = -1; -- cgit