From 12a9d139eecea7e7fb5e73e82a2531c70894d4c8 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 16 Dec 1999 13:13:22 +0000 Subject: ipv6_compare() accepts non-lvalue arguments as well. This makes filters compile with IPv6. --- lib/ipv6.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/ipv6.h') diff --git a/lib/ipv6.h b/lib/ipv6.h index 59005f9..32525af 100644 --- a/lib/ipv6.h +++ b/lib/ipv6.h @@ -54,14 +54,14 @@ typedef struct ipv6_addr { /* ipa_opposite and ipa_class_mask don't make sense with IPv6 */ /* ipa_from_u32 and ipa_to_u32 replaced by ipa_build */ #define ipa_build(a,b,c,d) _MI(a,b,c,d) -#define ipa_compare(x,y) ipv6_compare(&x,&y) +#define ipa_compare(x,y) ipv6_compare(x,y) ip_addr ipv6_mkmask(unsigned); unsigned ipv6_mklen(ip_addr *); int ipv6_classify(ip_addr *); void ipv6_hton(ip_addr *); void ipv6_ntoh(ip_addr *); -int ipv6_compare(ip_addr *, ip_addr *); +int ipv6_compare(ip_addr, ip_addr); int ipv4_pton_u32(char *, u32 *); /* FIXME: Is this hash function uniformly distributed over standard routing tables? */ -- cgit v1.2.3