summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-05-26 05:21:17 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-05-26 05:21:17 +0000
commit12ee2dab7efe2360d4bd3ebbb3eb88cbbf4b0461 (patch)
tree68e0934516acfffb31fb249d86231d03183dea3a /sys/net
parent18883419e29d30c9da568756046dada0edc1fde3 (diff)
repair (self) notation - just attach "self" to the "all" group
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf_if.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/pf_if.c b/sys/net/pf_if.c
index acdef78bdbf..8b052e5f0b8 100644
--- a/sys/net/pf_if.c
+++ b/sys/net/pf_if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_if.c,v 1.32 2005/05/25 06:50:05 henning Exp $ */
+/* $OpenBSD: pf_if.c,v 1.33 2005/05/26 05:21:16 henning Exp $ */
/*
* Copyright 2005 Henning Brauer <henning@openbsd.org>
@@ -348,7 +348,10 @@ pfi_dynaddr_setup(struct pf_addr_wrap *aw, sa_family_t af)
bzero(dyn, sizeof(*dyn));
s = splsoftnet();
- dyn->pfid_kif = pfi_kif_get(aw->v.ifname);
+ if (!strcmp(aw->v.ifname, "self"))
+ dyn->pfid_kif = pfi_kif_get("all");
+ else
+ dyn->pfid_kif = pfi_kif_get(aw->v.ifname);
if (dyn->pfid_kif == NULL) {
rv = 1;
goto _bad;