summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_mport.c
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/libipt_mport.c')
-rw-r--r--extensions/libipt_mport.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/extensions/libipt_mport.c b/extensions/libipt_mport.c
index a387b214..e6975d03 100644
--- a/extensions/libipt_mport.c
+++ b/extensions/libipt_mport.c
@@ -33,17 +33,6 @@ static struct option opts[] = {
{0}
};
-static int
-service_to_port(const char *name, const char *proto)
-{
- struct servent *service;
-
- if ((service = getservbyname(name, proto)) != NULL)
- return ntohs((unsigned short) service->s_port);
-
- return -1;
-}
-
static u_int16_t
parse_port(const char *port, const char *proto)
{