diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-25 11:26:48 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-10-25 11:26:48 +0000 |
commit | 21a1d3c5ffca872a677e1459355d1810bd19e217 (patch) | |
tree | 67446db7788bb9e569ef0cf814a3b9d5181e54e7 /sys/net/if_pflog.c | |
parent | ff41d9b3d524c37c68b96c09e7b65325a302f870 (diff) |
add a "u_int8_t logif" to struct pfrule to select to which pflog interface
logs go. ok mcbride
Diffstat (limited to 'sys/net/if_pflog.c')
-rw-r--r-- | sys/net/if_pflog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c index 482d5233df1..d4e093f3468 100644 --- a/sys/net/if_pflog.c +++ b/sys/net/if_pflog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_pflog.c,v 1.19 2006/10/23 12:46:09 henning Exp $ */ +/* $OpenBSD: if_pflog.c,v 1.20 2006/10/25 11:26:47 henning Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -221,7 +221,7 @@ pflog_packet(struct pfi_kif *kif, struct mbuf *m, sa_family_t af, u_int8_t dir, if (kif == NULL || m == NULL || rm == NULL || pd == NULL) return (-1); - if ((ifn = pflogifs[0]) == NULL || !ifn->if_bpf) + if ((ifn = pflogifs[rm->logif]) == NULL || !ifn->if_bpf) return (0); bzero(&hdr, sizeof(hdr)); |