From 0fe3b28b68f10a32f3fe43e8221559a72be5ca28 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 1 Jun 1998 21:36:58 +0000 Subject: Added ipa_xor() and ipa_in_net(). --- lib/ipv4.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/ipv4.h') diff --git a/lib/ipv4.h b/lib/ipv4.h index add406b0..af2194ca 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)) -- cgit v1.2.3