Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dist/pf/net Fix previous.
details: https://anonhg.NetBSD.org/src/rev/34adcfe30ac9
branches: trunk
changeset: 329275:34adcfe30ac9
user: rmind <rmind%NetBSD.org@localhost>
date: Sat May 17 21:00:33 2014 +0000
description:
Fix previous.
diffstat:
sys/dist/pf/net/pf_if.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (39 lines):
diff -r 7e170bf7f4a9 -r 34adcfe30ac9 sys/dist/pf/net/pf_if.c
--- a/sys/dist/pf/net/pf_if.c Sat May 17 20:44:24 2014 +0000
+++ b/sys/dist/pf/net/pf_if.c Sat May 17 21:00:33 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pf_if.c,v 1.25 2014/05/17 20:44:24 rmind Exp $ */
+/* $NetBSD: pf_if.c,v 1.26 2014/05/17 21:00:33 rmind Exp $ */
/* $OpenBSD: pf_if.c,v 1.47 2007/07/13 09:17:48 markus Exp $ */
/*
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pf_if.c,v 1.25 2014/05/17 20:44:24 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pf_if.c,v 1.26 2014/05/17 21:00:33 rmind Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -134,17 +134,14 @@
pfi_destroy(void)
{
struct pfi_kif *p;
- int i;
+ ifnet_t *ifp;
pfil_remove_hook(pfil_ifaddr_wrapper, NULL, PFIL_IFADDR, if_pfil);
pfil_remove_hook(pfil_ifnet_wrapper, NULL, PFIL_IFNET, if_pfil);
- ifnet_t *ifp;
IFNET_FOREACH(ifp) {
- if ((ifp = if_byindex(i)) != NULL) {
- pfi_detach_ifnet(ifp);
- pfi_destroy_groups(ifp);
- }
+ pfi_detach_ifnet(ifp);
+ pfi_destroy_groups(ifp);
}
while ((p = RB_MIN(pfi_ifhead, &pfi_ifs))) {
Home |
Main Index |
Thread Index |
Old Index