diff options
author | green <green@FreeBSD.org> | 1999-08-01 16:57:24 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 1999-08-01 16:57:24 +0000 |
commit | d848a791d143dcd43bbfd4243df4fe61c62fac41 (patch) | |
tree | 02d5b553f5f87af777c6d66d6b2b25611e79109b /sys/netinet/raw_ip.c | |
parent | 7263583ccb568e6d5e6e6d32d6e126a50ea4229d (diff) | |
download | FreeBSD-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/raw_ip.c')
-rw-r--r-- | sys/netinet/raw_ip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c index f94cc09..d8117dd 100644 --- a/sys/netinet/raw_ip.c +++ b/sys/netinet/raw_ip.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)raw_ip.c 8.7 (Berkeley) 5/15/95 - * $Id: raw_ip.c,v 1.58 1999/04/27 11:17:36 phk Exp $ + * $Id: raw_ip.c,v 1.59 1999/05/03 23:57:30 billf Exp $ */ #include <sys/param.h> @@ -293,6 +293,7 @@ rip_ctloutput(so, sopt) case IP_FW_DEL: case IP_FW_FLUSH: case IP_FW_ZERO: + case IP_FW_RESETLOG: if (ip_fw_ctl_ptr == 0) error = ENOPROTOOPT; else |