diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-15 15:31:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-08-15 15:31:47 +0000 |
commit | cf5935b68ef19e8c9ec018aa1ff9d4cf5b1ddbf5 (patch) | |
tree | 3ec0f5a58f83db5842b4f33e183959557eec3224 /sys/net | |
parent | 31e861a8209c556f0108b2ee0e52a8733574af26 (diff) |
undo last commit, skipping over ifaddrs without IFA_ROUTE has unwanted
sideffects in IPv6 land, noticed by Johan Fredin <griffin@legonet.org>
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf_if.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c index 72cb0589668..f7dd3500a1c 100644 --- a/sys/net/pf_if.c +++ b/sys/net/pf_if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_if.c,v 1.19 2004/08/11 12:06:44 henning Exp $ */ +/* $OpenBSD: pf_if.c,v 1.20 2004/08/15 15:31:46 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -42,7 +42,6 @@ #include <net/if.h> #include <net/if_types.h> -#include <net/route.h> #include <netinet/in.h> #include <netinet/in_var.h> @@ -408,8 +407,6 @@ pfi_instance_add(struct ifnet *ifp, int net, int flags) af = ia->ifa_addr->sa_family; if (af != AF_INET && af != AF_INET6) continue; - if (!(ia->ifa_flags & IFA_ROUTE)) - continue; if ((flags & PFI_AFLAG_BROADCAST) && af == AF_INET6) continue; if ((flags & PFI_AFLAG_BROADCAST) && |