summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2010-01-14 01:19:47 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2010-01-14 01:19:47 +0000
commit62f83212ea6785ea9c8306ff01e314e77a8fd060 (patch)
treee90eb5a1d7b44f58fc88bb13574458d63d7a43b8 /sys/net
parent8b71bd40822dbd49e0def45ccd2051b2349a4cd6 (diff)
When printing states in debug output, print the rule number that created
it if we have it. Requested by dlg, ok henning.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index a22928d9cf4..606305fac98 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.686 2010/01/14 01:06:14 henning Exp $ */
+/* $OpenBSD: pf.c,v 1.687 2010/01/14 01:19:46 mcbride Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1431,6 +1431,8 @@ pf_print_state_parts(struct pf_state *s,
printf("]");
}
printf(" %u:%u", s->src.state, s->dst.state);
+ if (s->rule.ptr)
+ printf(" @%d", s->rule.ptr->nr);
}
}