summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-07-04 09:52:34 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-07-04 09:52:34 +0000
commitdcaabc9f36ab9fd77d813124844a5eec000b2526 (patch)
treebe793c5c6ccf5d619e1cd741dd4dd0ebc1d60a34 /sys
parentf6e3dc46fa21e24a0e4177cda73a98b9344061e9 (diff)
in if_group_routechange(), when checking wether a default route was changed
to trigger an if_group_egress_build() call, stop looking at the mask in the v4 case, at least until I figured out why we sometimes see masks full of crap.
Diffstat (limited to 'sys')
-rw-r--r--sys/net/if.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index c2dda7b0082..698ee18947e 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.136 2005/06/23 14:30:40 mickey Exp $ */
+/* $OpenBSD: if.c,v 1.137 2005/07/04 09:52:33 henning Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1767,8 +1767,7 @@ if_group_routechange(struct sockaddr *dst, struct sockaddr *mask)
{
switch (dst->sa_family) {
case AF_INET:
- if (satosin(dst)->sin_addr.s_addr == INADDR_ANY &&
- mask && satosin(mask)->sin_addr.s_addr == INADDR_ANY)
+ if (satosin(dst)->sin_addr.s_addr == INADDR_ANY)
if_group_egress_build();
break;
#ifdef INET6