summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org>2006-07-20 17:01:54 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org>2006-07-20 17:01:54 +0000
commit18c7ec36ac949aaaf28aa25d11c0289a88d35592 (patch)
treef12056e44275c023cef77e131ef9038e9efc3915 /include
parent877fab32b43e91b0a55b655a7b7d6ac0844918fd (diff)
[PATCH] 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')
-rw-r--r--include/ip6tables.h1
-rw-r--r--include/iptables.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/ip6tables.h b/include/ip6tables.h
index e711982..b1140b3 100644
--- a/include/ip6tables.h
+++ b/include/ip6tables.h
@@ -134,6 +134,7 @@ extern void register_match6(struct ip6tables_match *me);
extern void register_target6(struct ip6tables_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 int do_command6(int argc, char *argv[], char **table,
ip6tc_handle_t *handle);
/* Keeping track of external matches and targets: linked lists. */
diff --git a/include/iptables.h b/include/iptables.h
index 4465e59..ba27cac 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);