path: root/include/iptables.h
diff options
authorMarc Boucher <>2001-12-06 14:50:19 +0000
committerMarc Boucher <>2001-12-06 14:50:19 +0000
commitb93c79862b47f227ac908430a2c9f16b4ecc0631 (patch)
tree71c404956d054f912b196b6b0356ea5c6c0d3df3 /include/iptables.h
parent389e3544861d170016c1059abe699d991e341d41 (diff)
Export addr_to_anyname(), mask_to_dotted(), parse_hostnetworkmask()
and parse_protocol() as they are needed by the upcoming ipt_conntrack match module.
Diffstat (limited to 'include/iptables.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/include/iptables.h b/include/iptables.h
index ac2a6b3b..858bbdc7 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -112,6 +112,12 @@ extern void register_target(struct iptables_target *me);
extern struct in_addr *dotted_to_addr(const char *dotted);
extern char *addr_to_dotted(const struct in_addr *addrp);
+extern char *addr_to_anyname(const struct in_addr *addr);
+extern char *mask_to_dotted(const struct in_addr *mask);
+extern void parse_hostnetworkmask(const char *name, struct in_addr **addrpp,
+ struct in_addr *maskp, unsigned int *naddrs);
+extern u_int16_t parse_protocol(const char *s);
extern int do_command(int argc, char *argv[], char **table,
iptc_handle_t *handle);