From eeb36ca3d5695dc231e9cab75fffee889fb58e35 Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Sat, 29 Sep 2007 15:01:41 +0000 Subject: [PATCH] o For dynamic rules log a parent rule number. Prefix a log message by 'ipfw: '. PR: kern/115755 Submitted by: sem Approved by: re (gnn) MFC after: 4 weeks --- sys/netinet/ip_fw2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c index 9b013eb56a0..310c635b10f 100644 --- a/sys/netinet/ip_fw2.c +++ b/sys/netinet/ip_fw2.c @@ -1567,7 +1567,8 @@ install_state(struct ip_fw *rule, ipfw_insn_limit *cmd, inet_ntoa_r(da, dst); } log(LOG_SECURITY | LOG_DEBUG, - "%s %s:%u -> %s:%u, %s\n", + "ipfw: %d %s %s:%u -> %s:%u, %s\n", + parent->rule->rulenum, "drop session", src, (args->f_id.src_port), dst, (args->f_id.dst_port),