path: root/include/iptables.h
diff options
authormarc <marc>2001-12-06 14:50:19 +0000
committermarc <marc>2001-12-06 14:50:19 +0000
commit29969127cabf11d361e0d8b18a1d6224fb308574 (patch)
tree71c404956d054f912b196b6b0356ea5c6c0d3df3 /include/iptables.h
parentd043b5b6cc9ac2f8ab7aef92bb3dffe4af74ee18 (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 ac2a6b3..858bbdc 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);