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/ip.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/ip.h') diff --git a/lib/ip.h b/lib/ip.h index 87cd3aa..5bf56fc 100644 --- a/lib/ip.h +++ b/lib/ip.h @@ -15,6 +15,8 @@ #include "ipv6.h" #endif +#define ipa_in_net(x,n,p) (!ipa_nonzero(ipa_and(ipa_xor((n),(x)),ipa_mkmask(p)))) + /* * ip_classify() returns either a negative number for invalid addresses * or scope OR'ed together with address type. -- cgit v1.2.3