diff options
author | Trent Lloyd <lathiat@bur.st> | 2006-12-11 09:34:00 +0000 |
---|---|---|
committer | Trent Lloyd <lathiat@bur.st> | 2006-12-11 09:34:00 +0000 |
commit | 37b2be93e63ceff95698f24cd91cb11774eb621c (patch) | |
tree | 2c57ad5bd80909c9cff170e4a63a2e53d607cead /avahi-autoipd | |
parent | a3770ae01c6c0af893af0a36ceecba6ff301c6f4 (diff) |
* 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
Diffstat (limited to 'avahi-autoipd')
-rw-r--r-- | avahi-autoipd/iface-linux.c | 9 |
1 files changed, 9 insertions, 0 deletions
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 <avahi-common/llist.h> #include <avahi-common/malloc.h> +#include <linux/if_addr.h> +#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; |