summaryrefslogtreecommitdiffstats
path: root/lib/ipv4.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipv4.h')
-rw-r--r--lib/ipv4.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ipv4.h b/lib/ipv4.h
index add406b..af2194c 100644
--- a/lib/ipv4.h
+++ b/lib/ipv4.h
@@ -44,6 +44,7 @@ typedef u32 ip_addr;
#define ipa_nonzero(x) _I(x)
#define ipa_and(x,y) _MI(_I(x) & _I(y))
#define ipa_or(x,y) _MI(_I(x) | _I(y))
+#define ipa_xor(x,y) _MI(_I(x) ^ _I(y))
#define ipa_not(x) _MI(~_I(x))
#define ipa_mkmask(x) _MI(u32_mkmask(x))
#define ipa_mklen(x) u32_masklen(_I(x))