summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-09 09:31:08 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-05-09 09:31:08 +0000
commit36d84a228a1ef07b8732e943a3d2f6f61f0ef35f (patch)
tree2b957b9ff2deca4c3266a8317a5180536e44cd2e
parent31056fddf2f21c827f904580344544658014556b (diff)
pfctlinput(PRC_IFDOWN, ...) has no effect on OpenBSD so remove it.
ok bluhm@
-rw-r--r--sys/net/if.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index ef0c7e172b1..5f7fb91aa97 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.494 2017/05/04 15:00:24 bluhm Exp $ */
+/* $OpenBSD: if.c,v 1.495 2017/05/09 09:31:07 mpi Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -1504,15 +1504,10 @@ if_downall(void)
void
if_down(struct ifnet *ifp)
{
- struct ifaddr *ifa;
-
splsoftassert(IPL_SOFTNET);
ifp->if_flags &= ~IFF_UP;
getmicrotime(&ifp->if_lastchange);
- TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) {
- pfctlinput(PRC_IFDOWN, ifa->ifa_addr);
- }
IFQ_PURGE(&ifp->if_snd);
if_linkstate(ifp);