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/ip6tables.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ip6tables.h') 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. */ -- cgit v1.2.3