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-core/iface-linux.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'avahi-core/iface-linux.c') diff --git a/avahi-core/iface-linux.c b/avahi-core/iface-linux.c index 910000d..a975976 100644 --- a/avahi-core/iface-linux.c +++ b/avahi-core/iface-linux.c @@ -30,6 +30,15 @@ #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 "log.h" #include "iface.h" #include "iface-linux.h" -- cgit