summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw.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/ip_fw.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/ip_fw.h')
-rw-r--r--sys/netinet/ip_fw.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index d858040..958eb67 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -11,7 +11,7 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
- * $Id: ip_fw.h,v 1.38 1999/06/19 18:43:30 green Exp $
+ * $Id: ip_fw.h,v 1.39 1999/07/28 22:22:57 green Exp $
*/
#ifndef _IP_FW_H
@@ -85,6 +85,8 @@ struct ip_fw {
void *next_rule_ptr ; /* next rule in case of match */
uid_t fw_uid; /* uid to match */
gid_t fw_gid; /* gid to match */
+ int fw_logamount; /* amount to log */
+ u_int64_t fw_loghighest; /* highest number packet to log */
};
#define IP_FW_GETNSRCP(rule) ((rule)->fw_nports & 0x0f)
OpenPOWER on IntegriCloud