summaryrefslogtreecommitdiff
path: root/sys/net/pf_if.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-06-06 03:44:22 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-06-06 03:44:22 +0000
commit42ba9223f73995359f5c72a8206c6ad5b2235895 (patch)
treee61e7f6ee3cfcd5daf74702a28f1c35c9f4315fe /sys/net/pf_if.c
parentcfc46b08f15b5103c1172bd42c8d57fcfcadde63 (diff)
use a define instead of hardcoding "all" in 3 places
Diffstat (limited to 'sys/net/pf_if.c')
-rw-r--r--sys/net/pf_if.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c
index a84f0aacb63..9638b1a29d0 100644
--- a/sys/net/pf_if.c
+++ b/sys/net/pf_if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_if.c,v 1.38 2005/06/05 20:47:46 henning Exp $ */
+/* $OpenBSD: pf_if.c,v 1.39 2005/06/06 03:44:21 henning Exp $ */
/*
* Copyright 2005 Henning Brauer <henning@openbsd.org>
@@ -95,7 +95,7 @@ pfi_initialize(void)
pfi_buffer = malloc(pfi_buffer_max * sizeof(*pfi_buffer),
PFI_MTYPE, M_WAITOK);
- if ((pfi_all = pfi_kif_get("all")) == NULL)
+ if ((pfi_all = pfi_kif_get(IFG_ALL)) == NULL)
panic("pfi_kif_get for pfi_all failed");
}
@@ -347,7 +347,7 @@ pfi_dynaddr_setup(struct pf_addr_wrap *aw, sa_family_t af)
s = splsoftnet();
if (!strcmp(aw->v.ifname, "self"))
- dyn->pfid_kif = pfi_kif_get("all");
+ dyn->pfid_kif = pfi_kif_get(IFG_ALL);
else
dyn->pfid_kif = pfi_kif_get(aw->v.ifname);
if (dyn->pfid_kif == NULL) {