diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-05-05 21:40:23 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2002-05-05 21:40:23 +0000 |
commit | b5f2795a8610a214a5157e96d671edabd9b3b5c7 (patch) | |
tree | 1b3b369541094f03b49243b00569c99f39244a6f /sys/net/pfvar.h | |
parent | df70d51bc6bcedc9fe02c6df25ad71fe65a895e8 (diff) |
Instead of returning a useless kernel space pointer for the rule that
created the state from DIOCGETSTATE(S), return the integer rule number,
Print rule number (if existant) from pfctl -vss. Suggested by Jeff Nathan.
Diffstat (limited to 'sys/net/pfvar.h')
-rw-r--r-- | sys/net/pfvar.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h index dfac723cae6..6c254ccdd0f 100644 --- a/sys/net/pfvar.h +++ b/sys/net/pfvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfvar.h,v 1.68 2002/04/24 18:10:25 dhartmei Exp $ */ +/* $OpenBSD: pfvar.h,v 1.69 2002/05/05 21:40:22 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -284,7 +284,10 @@ struct pf_state { struct pf_state_host ext; struct pf_state_peer src; struct pf_state_peer dst; - struct pf_rule *rule; + union { + struct pf_rule *ptr; + u_int16_t nr; + } rule; u_int32_t creation; u_int32_t expire; u_int32_t packets; |