summaryrefslogtreecommitdiffstats
path: root/include/iptables.h
diff options
context:
space:
mode:
authorPhil Oester <kernel@linuxace.com>2006-07-20 17:01:54 +0000
committerPatrick McHardy <kaber@trash.net>2006-07-20 17:01:54 +0000
commitdbac8ad71c3c418fd8a62c08211885a38177b725 (patch)
treef12056e44275c023cef77e131ef9038e9efc3915 /include/iptables.h
parent58179b1d0d1722ea16028aa2ea9d74afc86dd5dc (diff)
reduce parse_*_port duplication (Phil Oester <kernel@linuxace.com>)
The below patch (dependent upon my 'reduce service_to_port duplication' patch) centralizes the parse_*_port functions into parse_port.
Diffstat (limited to 'include/iptables.h')
-rw-r--r--include/iptables.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/iptables.h b/include/iptables.h
index 4465e59b..ba27cac6 100644
--- a/include/iptables.h
+++ b/include/iptables.h
@@ -152,6 +152,7 @@ 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 u_int16_t parse_port(const char *port, 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);