summaryrefslogtreecommitdiffstats
path: root/interface.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-10-17 15:46:04 +0000
committerRoy Marples <roy@marples.name>2007-10-17 15:46:04 +0000
commit6b37baaad11ddf85817aaaea5aaac4259b77866f (patch)
treed9166ce4ebf8aeffb36a6fdebad9643e42c393ab /interface.h
parenta41c971c80cf3a50d252acc186bf0346ea86f7d6 (diff)
downloaddhcpcd-6b37baaad11ddf85817aaaea5aaac4259b77866f.tar.xz
Always define IN_LINKLOCAL
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/interface.h b/interface.h
index 59f5024f..47dfe539 100644
--- a/interface.h
+++ b/interface.h
@@ -64,6 +64,15 @@
((ntohl (addr) & IN_CLASSB_NET) == 0xc0a80000))
#endif
+#define LINKLOCAL_ADDR 0xa9fe0000
+#define LINKLOCAL_MASK 0xffff0000
+#define LINKLOCAL_BRDC 0xa9feffff
+
+#ifndef IN_LINKLOCAL
+# define IN_LINKLOCAL(addr) ((ntohl (addr) & IN_CLASSB_NET) == LINKLOCAL_ADDR)
+#endif
+
+
typedef struct route_t
{
struct in_addr destination;