diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libiptc/libip6tc.h | 6 | ||||
-rw-r--r-- | include/libiptc/libiptc.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/libiptc/libip6tc.h b/include/libiptc/libip6tc.h index 33ec69d2..9796574f 100644 --- a/include/libiptc/libip6tc.h +++ b/include/libiptc/libip6tc.h @@ -80,6 +80,12 @@ int ip6tc_append_entry(const ip6t_chainlabel chain, const struct ip6t_entry *e, struct ip6tc_handle *handle); +/* Check whether a matching rule exists */ +int ip6tc_check_entry(const ip6t_chainlabel chain, + const struct ip6t_entry *origfw, + unsigned char *matchmask, + struct ip6tc_handle *handle); + /* Delete the first rule in `chain' which matches `fw'. */ int ip6tc_delete_entry(const ip6t_chainlabel chain, const struct ip6t_entry *origfw, diff --git a/include/libiptc/libiptc.h b/include/libiptc/libiptc.h index 5d782dab..4355ac92 100644 --- a/include/libiptc/libiptc.h +++ b/include/libiptc/libiptc.h @@ -88,6 +88,12 @@ int iptc_append_entry(const ipt_chainlabel chain, const struct ipt_entry *e, struct iptc_handle *handle); +/* Check whether a mathching rule exists */ +int iptc_check_entry(const ipt_chainlabel chain, + const struct ipt_entry *origfw, + unsigned char *matchmask, + struct iptc_handle *handle); + /* Delete the first rule in `chain' which matches `e', subject to matchmask (array of length == origfw) */ int iptc_delete_entry(const ipt_chainlabel chain, |