summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2013-10-02 11:42:46 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2013-10-02 11:42:46 +0200
commitb655596d1d9ad7664d12249c946ba3483b2de3f0 (patch)
tree6944cbd86ff58e7b023c3ecd153efca11a0203e9 /lib
parentec57bbf67f9e4221fb98f6769f592cedf2eb2d24 (diff)
Simplifies val_in_range().
Also fixes missing type check for element ~ set.
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h6
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))