summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-05-22 18:35:44 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-05-22 18:35:44 +0000
commit1142f0ed92870d762d73de59f7ac62b4054101c2 (patch)
tree51f8ea770ca7fb737b26b18e095abd96c79b334e /sys/net
parentb0058dc50623b1e286d2e43fd5317300330ff14d (diff)
no need to search for the kif before callig pf_get_kif, it does that for us
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf_if.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c
index 35abf0156d2..033c92620f2 100644
--- a/sys/net/pf_if.c
+++ b/sys/net/pf_if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_if.c,v 1.27 2005/05/22 18:23:04 henning Exp $ */
+/* $OpenBSD: pf_if.c,v 1.28 2005/05/22 18:35:43 henning Exp $ */
/*
* Copyright 2005 Henning Brauer <henning@openbsd.org>
@@ -206,16 +206,14 @@ pfi_kif_match(struct pfi_kif *rule_kif, struct pfi_kif *packet_kif)
void
pfi_attach_ifnet(struct ifnet *ifp)
{
- struct pfi_kif *kif, key;
+ struct pfi_kif *kif;
int s;
pfi_initialize();
s = splsoftnet();
- strlcpy(key.pfik_name, ifp->if_xname, sizeof(key.pfik_name));
- if ((kif = RB_FIND(pfi_ifhead, &pfi_ifs, &key)) == NULL)
- if ((kif = pfi_kif_get(ifp->if_xname)) == NULL)
- panic("pfi_kif_get failed");
+ if ((kif = pfi_kif_get(ifp->if_xname)) == NULL)
+ panic("pfi_kif_get failed");
kif->pfik_ifp = ifp;
ifp->if_pf_kif = (caddr_t)kif;