diff options
| author | Roy Marples <roy@marples.name> | 2007-10-17 15:46:04 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2007-10-17 15:46:04 +0000 |
| commit | 6b37baaad11ddf85817aaaea5aaac4259b77866f (patch) | |
| tree | d9166ce4ebf8aeffb36a6fdebad9643e42c393ab /interface.h | |
| parent | a41c971c80cf3a50d252acc186bf0346ea86f7d6 (diff) | |
| download | dhcpcd-6b37baaad11ddf85817aaaea5aaac4259b77866f.tar.xz | |
Always define IN_LINKLOCAL
Diffstat (limited to 'interface.h')
| -rw-r--r-- | interface.h | 9 |
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; |
