From 18c7ec36ac949aaaf28aa25d11c0289a88d35592 Mon Sep 17 00:00:00 2001 From: "/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/emailAddress=kaber@netfilter.org" Date: Thu, 20 Jul 2006 17:01:54 +0000 Subject: [PATCH] reduce parse_*_port duplication (Phil Oester ) The below patch (dependent upon my 'reduce service_to_port duplication' patch) centralizes the parse_*_port functions into parse_port. --- include/iptables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/iptables.h') 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); -- cgit v1.2.3