From ad17c2f6b18a6a88b72b1c98178defc52f8d5aed Mon Sep 17 00:00:00 2001 From: David Krause Date: Fri, 9 Jan 2009 04:41:03 +0000 Subject: fix egress group matching for IPv6; ok claudio@ --- sys/net/if.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys') diff --git a/sys/net/if.c b/sys/net/if.c index ddb4c5bb1ce..ca0a8d2388a 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.185 2008/12/12 22:07:33 claudio Exp $ */ +/* $OpenBSD: if.c,v 1.186 2009/01/09 04:41:02 david Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1921,9 +1921,9 @@ if_group_routechange(struct sockaddr *dst, struct sockaddr *mask) #ifdef INET6 case AF_INET6: if (IN6_ARE_ADDR_EQUAL(&(satosin6(dst))->sin6_addr, - &in6addr_any) && mask && + &in6addr_any) && mask && (mask->sa_len == 0 || IN6_ARE_ADDR_EQUAL(&(satosin6(mask))->sin6_addr, - &in6addr_any)) + &in6addr_any))) if_group_egress_build(); break; #endif -- cgit v1.2.3