diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2013-10-02 11:42:46 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2013-10-02 11:42:46 +0200 |
commit | b655596d1d9ad7664d12249c946ba3483b2de3f0 (patch) | |
tree | 6944cbd86ff58e7b023c3ecd153efca11a0203e9 /lib/birdlib.h | |
parent | ec57bbf67f9e4221fb98f6769f592cedf2eb2d24 (diff) |
Simplifies val_in_range().
Also fixes missing type check for element ~ set.
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r-- | lib/birdlib.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 479f3d5c..7e6e8526 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -34,6 +34,12 @@ #define NULL ((void *) 0) #endif +#ifndef IPV6 +#define IP_VERSION 4 +#else +#define IP_VERSION 6 +#endif + /* Macros for gcc attributes */ #define NORET __attribute__((noreturn)) |