diff options
author | mlaier <mlaier@FreeBSD.org> | 2004-08-12 13:54:50 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2004-08-12 13:54:50 +0000 |
commit | 79a496b7d4dc2869aa6f6c2bc0c303339504ae0c (patch) | |
tree | 3006898c2b90fa6a439c9729b1264f1e132d3708 /sys/contrib/pf | |
parent | 3e11d41b474cd6020bf4a0e6499acec6ffe15d55 (diff) | |
download | FreeBSD-src-79a496b7d4dc2869aa6f6c2bc0c303339504ae0c.zip FreeBSD-src-79a496b7d4dc2869aa6f6c2bc0c303339504ae0c.tar.gz |
Loopback fix from Henning Brauer:
skip over interface addresses without IFA_ROUTE, fixes some issue
with pppd
PR: misc/69954
Diffstat (limited to 'sys/contrib/pf')
-rw-r--r-- | sys/contrib/pf/net/pf_if.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/pf/net/pf_if.c b/sys/contrib/pf/net/pf_if.c index 7fe8a7b..00c1752 100644 --- a/sys/contrib/pf/net/pf_if.c +++ b/sys/contrib/pf/net/pf_if.c @@ -1,5 +1,6 @@ /* $FreeBSD$ */ /* $OpenBSD: pf_if.c,v 1.11 2004/03/15 11:38:23 cedric Exp $ */ +/* add $OpenBSD: pf_if.c,v 1.19 2004/08/11 12:06:44 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -53,6 +54,7 @@ #include <net/if.h> #include <net/if_types.h> +#include <net/route.h> #include <netinet/in.h> #include <netinet/in_var.h> @@ -636,6 +638,8 @@ 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) && |