summaryrefslogtreecommitdiffstats
path: root/include/libiptc/libiptc.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2001-01-05 15:22:37 +0000
committerHarald Welte <laforge@gnumonks.org>2001-01-05 15:22:37 +0000
commit0fbf055c9e320a89dd8a5ad0edbeae3d8c1de4af (patch)
treec6e7b1337ced5afdcefb14b7f29846b535601da2 /include/libiptc/libiptc.h
parentee6cc240b718d2b85d8bdce68c4e062ae968bb46 (diff)
libiptc counter functions
Diffstat (limited to 'include/libiptc/libiptc.h')
-rw-r--r--include/libiptc/libiptc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h
index fa0a4eaf..6bb37323 100644
--- a/include/libiptc/libiptc.h
+++ b/include/libiptc/libiptc.h
@@ -118,6 +118,7 @@ int iptc_rename_chain(const ipt_chainlabel oldname,
/* Sets the policy on a built-in chain. */
int iptc_set_policy(const ipt_chainlabel chain,
const ipt_chainlabel policy,
+ struct ipt_counters *counters,
iptc_handle_t *handle);
/* Get the number of references to this chain */
@@ -125,6 +126,22 @@ int iptc_get_references(unsigned int *ref,
const ipt_chainlabel chain,
iptc_handle_t *handle);
+/* read packet and byte counters for a specific rule */
+struct ipt_counters *iptc_read_counter(const ipt_chainlabel chain,
+ unsigned int rulenum,
+ iptc_handle_t *handle);
+
+/* zero packet and byte counters for a specific rule */
+int iptc_zero_counter(const ipt_chainlabel chain,
+ unsigned int rulenum,
+ iptc_handle_t *handle);
+
+/* set packet and byte counters for a specific rule */
+int iptc_set_counter(const ipt_chainlabel chain,
+ unsigned int rulenum,
+ struct ipt_counters *counters,
+ iptc_handle_t *handle);
+
/* Makes the actual changes. */
int iptc_commit(iptc_handle_t *handle);