diff options
author | Martin Mares <mj@ucw.cz> | 1998-05-15 09:56:13 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-05-15 09:56:13 +0200 |
commit | 25697773b529d80278679978b7416ca9c87e15e9 (patch) | |
tree | 8ca875571e57475a15e978abae76aeda58d82149 /lib/ip.h | |
parent | 62aa008abd627c6862310daf65ffd337a920bdbb (diff) | |
download | bird-25697773b529d80278679978b7416ca9c87e15e9.tar bird-25697773b529d80278679978b7416ca9c87e15e9.zip |
The library is now glued together from generic and OS-dependent parts
by the `mergedirs' script. Few more IP address manipulation functions
and some fixes.
Diffstat (limited to 'lib/ip.h')
-rw-r--r-- | lib/ip.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,4 +35,10 @@ #define SCOPE_SITE 2 #define SCOPE_UNIVERSE 3 +/* + * Is it a valid network prefix? + */ + +#define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l))))) + #endif |