path: root/include/iptables.h
diff options
authorPhil Oester <>2006-07-20 17:00:19 +0000
committerPatrick McHardy <>2006-07-20 17:00:19 +0000
commit58179b1d0d1722ea16028aa2ea9d74afc86dd5dc (patch)
treec7345c2720ad5cf6ffb5ebe4bf5bc985b609ec51 /include/iptables.h
parent7f5be628f66ec7b8b22e87ace39ee61213c6313b (diff)
reduce service_to_port duplication (Phil Oester <>)
The service_to_port function is used in a number of places, and could benefit from some centralization instead of being duplicated everywhere.
Diffstat (limited to 'include/iptables.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/iptables.h b/include/iptables.h
index 1cd9dc41..4465e59b 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -151,6 +151,7 @@ extern int line;
extern void register_match(struct iptables_match *me);
extern void register_target(struct iptables_target *me);
+extern int service_to_port(const char *name, const char *proto);
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);