diff options
author | Martin Mares <mj@ucw.cz> | 1998-05-03 18:43:39 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-05-03 18:43:39 +0200 |
commit | 18c8241a91bd9208879666f1a1a13f454e66d75b (patch) | |
tree | 8bdc5f3e384b6b9198d5ab834d869c8d1fb261a7 /lib/ip.h | |
parent | a8b6038225d18155883e330c96b2bc2e44153e1e (diff) | |
download | bird-18c8241a91bd9208879666f1a1a13f454e66d75b.tar bird-18c8241a91bd9208879666f1a1a13f454e66d75b.zip |
BIRD library: The story continues.
Complete resource manages and IP address handling.
Diffstat (limited to 'lib/ip.h')
-rw-r--r-- | lib/ip.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -15,4 +15,24 @@ #include "ipv6.h" #endif +/* + * ip_classify() returns either a negative number for invalid addresses + * or scope OR'ed together with address type. + */ + +#define IADDR_INVALID -1 +#define IADDR_SCOPE_MASK 0xfff +#define IADDR_HOST 0x1000 +#define IADDR_BROADCAST 0x2000 +#define IADDR_MULTICAST 0x4000 + +/* + * Address scope + */ + +#define SCOPE_HOST 0 +#define SCOPE_LINK 1 +#define SCOPE_SITE 2 +#define SCOPE_UNIVERSE 3 + #endif |