summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.h
diff options
context:
space:
mode:
authorgreen <green@FreeBSD.org>1999-08-01 16:57:24 +0000
committergreen <green@FreeBSD.org>1999-08-01 16:57:24 +0000
commitd848a791d143dcd43bbfd4243df4fe61c62fac41 (patch)
tree02d5b553f5f87af777c6d66d6b2b25611e79109b /sys/netinet/in.h
parent7263583ccb568e6d5e6e6d32d6e126a50ea4229d (diff)
downloadFreeBSD-src-d848a791d143dcd43bbfd4243df4fe61c62fac41.zip
FreeBSD-src-d848a791d143dcd43bbfd4243df4fe61c62fac41.tar.gz
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.
Diffstat (limited to 'sys/netinet/in.h')
-rw-r--r--sys/netinet/in.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 1eebb9a..1838def 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 */
OpenPOWER on IntegriCloud