summaryrefslogtreecommitdiff
path: root/lib/ipv6.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-06-01 21:36:58 +0000
committerMartin Mares <mj@ucw.cz>1998-06-01 21:36:58 +0000
commit0fe3b28b68f10a32f3fe43e8221559a72be5ca28 (patch)
tree3ad21f20008709e91afdd2c50420732c3f24fc31 /lib/ipv6.h
parentaf847acc27978cf48721aafbacab70e48f42ede7 (diff)
Added ipa_xor() and ipa_in_net().
Diffstat (limited to 'lib/ipv6.h')
-rw-r--r--lib/ipv6.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ipv6.h b/lib/ipv6.h
index 08ed5f88..3f775d4c 100644
--- a/lib/ipv6.h
+++ b/lib/ipv6.h
@@ -36,6 +36,10 @@ typedef struct ipv4_addr {
_I1(a) | _I1(b), \
_I2(a) | _I2(b), \
_I3(a) | _I3(b))
+#define ipa_xor(a,b) _MI(_I0(a) ^ _I0(b), \
+ _I1(a) ^ _I1(b), \
+ _I2(a) ^ _I2(b), \
+ _I3(a) ^ _I3(b))
#define ipa_not(a) _MI(~_I0(a),~_I1(a),~_I2(a),~_I3(a))
#define ipa_mkmask(x) ipv6_mkmask(x)
#define ipa_mklen(x) ipv6_mklen(&(x))