diff options
author | Brian Feldman <green@FreeBSD.org> | 1999-08-01 16:57:24 +0000 |
---|---|---|
committer | Brian Feldman <green@FreeBSD.org> | 1999-08-01 16:57:24 +0000 |
commit | 0b6c1a832d8c2306ebb95fa4f397abdb058dc931 (patch) | |
tree | e08ad2be18bc729c7d4c181664743ce6c1ed72f2 /sys/netinet/in.h | |
parent | 6e7b8c218d50da7a512bf5a811a1305edb4cd136 (diff) | |
download | src-0b6c1a832d8c2306ebb95fa4f397abdb058dc931.tar.gz src-0b6c1a832d8c2306ebb95fa4f397abdb058dc931.zip |
Make ipfw's logging more dynamic. Now, log will use the default limit
_or_ you may specify "log logamount number" to set logging specifically
the rule.
In addition, "ipfw resetlog" has been added, which will reset the
logging counters on any/all rule(s). ipfw resetlog does not affect
the packet/byte counters (as ipfw reset does), and is the only "set"
command that can be run at securelevel >= 3.
This should address complaints about not being able to set logging
amounts, not being able to restart logging at a high securelevel,
and not being able to just reset logging without resetting all of the
counters in a rule.
Notes
Notes:
svn path=/head/; revision=49350
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r-- | sys/netinet/in.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h index 1eebb9a166aa..1838defb6f6b 100644 --- a/sys/netinet/in.h +++ b/sys/netinet/in.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in.h 8.3 (Berkeley) 1/3/94 - * $Id: in.h,v 1.41 1999/05/04 16:20:29 luigi Exp $ + * $Id: in.h,v 1.42 1999/05/08 14:28:52 peter Exp $ */ #ifndef _NETINET_IN_H_ @@ -322,6 +322,7 @@ struct ip_opts { #define IP_FW_FLUSH 52 /* flush firewall rule chain */ #define IP_FW_ZERO 53 /* clear single/all firewall counter(s) */ #define IP_FW_GET 54 /* get entire firewall rule chain */ +#define IP_FW_RESETLOG 55 /* reset logging counters */ #define IP_DUMMYNET_CONFIGURE 60 /* add/configure a dummynet pipe */ #define IP_DUMMYNET_DEL 61 /* delete a dummynet pipe from chain */ |