summaryrefslogtreecommitdiff
path: root/sys/net/pfvar.h
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2015-02-12 01:24:11 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2015-02-12 01:24:11 +0000
commite2dc6cb57d92fc7d6220cff76a1f0426424ec700 (patch)
tree74869a38848c49c38938f865e65dfe5d99bf55e5 /sys/net/pfvar.h
parent194bb52824f821d117eb28679efab10a2d6ef648 (diff)
change log(matches) semantics slightly to make it more useful. since it
is a debug tool change of semantics not considered problematic. up until now, log(matches) forced logging on subsequent matching rules, the actual logging used the log settings from that matched rule. now, log(matches) causes subsequent matches to be logged with the log settings from the log(matches) rule. in particular (this was the driving point), log(matches, to pflog23) allows you to have the trace log going to a seperate pflog interface, not clobbering your regular pflogs, actually not affecting them at all. long conversation with bluhm about it, which didn't lead to a single bit changed in the diff but was very very helpful. ok bluhm as well.
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r--sys/net/pfvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 2a59eec3c67..92806086987 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar.h,v 1.411 2015/02/10 09:28:40 henning Exp $ */
+/* $OpenBSD: pfvar.h,v 1.412 2015/02/12 01:24:10 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1815,7 +1815,7 @@ void pf_change_a(struct pf_pdesc *, void *, u_int32_t);
int pf_check_proto_cksum(struct pf_pdesc *, int, int, u_int8_t,
sa_family_t);
int pflog_packet(struct pf_pdesc *, u_int8_t, struct pf_rule *,
- struct pf_rule *, struct pf_ruleset *);
+ struct pf_rule *, struct pf_ruleset *, struct pf_rule *);
void pf_send_deferred_syn(struct pf_state *);
int pf_match_addr(u_int8_t, struct pf_addr *, struct pf_addr *,
struct pf_addr *, sa_family_t);