summaryrefslogtreecommitdiffstats
path: root/lib/ipv6.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-05-15 09:56:13 +0200
committerMartin Mares <mj@ucw.cz>1998-05-15 09:56:13 +0200
commit25697773b529d80278679978b7416ca9c87e15e9 (patch)
tree8ca875571e57475a15e978abae76aeda58d82149 /lib/ipv6.h
parent62aa008abd627c6862310daf65ffd337a920bdbb (diff)
downloadbird-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/ipv6.h')
-rw-r--r--lib/ipv6.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ipv6.h b/lib/ipv6.h
index 845955f..08ed5f8 100644
--- a/lib/ipv6.h
+++ b/lib/ipv6.h
@@ -22,6 +22,8 @@ typedef struct ipv4_addr {
#define _I2(a) ((a).addr[2])
#define _I3(a) ((a).addr[3])
+#define BITS_PER_IP_ADDRESS 128
+
#define IPA_NONE _MI(0,0,0,0)
#define ipa_equal(x,y) (!memcmp(&(x),&(y),sizeof(ip_addr)))