summaryrefslogtreecommitdiffstats
path: root/include/libiptc/libip6tc.h
diff options
context:
space:
mode:
authorlaforge <laforge>2001-01-05 15:22:37 +0000
committerlaforge <laforge>2001-01-05 15:22:37 +0000
commitff22cf913ec057b27e4d123b0171b4c86f4e5d14 (patch)
treec6e7b1337ced5afdcefb14b7f29846b535601da2 /include/libiptc/libip6tc.h
parent9d48280e74c953cfa271309a55866c14cea05fa3 (diff)
libiptc counter functions
Diffstat (limited to 'include/libiptc/libip6tc.h')
-rw-r--r--include/libiptc/libip6tc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/libiptc/libip6tc.h b/include/libiptc/libip6tc.h
index 599e0db..aebd647 100644
--- a/include/libiptc/libip6tc.h
+++ b/include/libiptc/libip6tc.h
@@ -113,12 +113,29 @@ int ip6tc_rename_chain(const ip6t_chainlabel oldname,
/* Sets the policy on a built-in chain. */
int ip6tc_set_policy(const ip6t_chainlabel chain,
const ip6t_chainlabel policy,
+ struct ip6t_counters *counters,
ip6tc_handle_t *handle);
/* Get the number of references to this chain */
int ip6tc_get_references(unsigned int *ref, const ip6t_chainlabel chain,
ip6tc_handle_t *handle);
+/* read packet and byte counters for a specific rule */
+struct ip6t_counters *ip6tc_read_counter(const ip6t_chainlabel chain,
+ unsigned int rulenum,
+ ip6tc_handle_t *handle);
+
+/* zero packet and byte counters for a specific rule */
+int ip6tc_zero_counter(const ip6t_chainlabel chain,
+ unsigned int rulenum,
+ ip6tc_handle_t *handle);
+
+/* set packet and byte counters for a specific rule */
+int ip6tc_set_counter(const ip6t_chainlabel chain,
+ unsigned int rulenum,
+ struct ip6t_counters *counters,
+ ip6tc_handle_t *handle);
+
/* Makes the actual changes. */
int ip6tc_commit(ip6tc_handle_t *handle);