summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNeutron Soutmun <neo.neutron@gmail.com>2012-05-06 22:18:52 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2012-05-06 22:18:52 +0200
commitf65b878e52494662fbb648132898575071bed75d (patch)
tree5fc9725ca069d10c0389d6cd453adb71208ecfbb /src
parent42d118b793e7fd82bde260d6635ac2ae607afdac (diff)
downloadipset-f65b878e52494662fbb648132898575071bed75d.tar.gz
Move ipset_port_usage() into lib
Diffstat (limited to 'src')
-rw-r--r--src/ui.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/ui.c b/src/ui.c
index d139707..7e40bde 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -256,34 +256,3 @@ ipset_shift_argv(int *argc, char *argv[], int from)
(*argc)--;
return;
}
-
-/**
- * ipset_port_usage - prints the usage for the port parameter
- *
- * Print the usage for the port parameter to stdout.
- */
-void
-ipset_port_usage(void)
-{
- int i;
- const char *name;
-
- printf(" [PROTO:]PORT is a valid pattern of the following:\n"
- " PORTNAME TCP port name from /etc/services\n"
- " PORTNUMBER TCP port number identifier\n"
- " tcp|sctp|udp|udplite:PORTNAME|PORTNUMBER\n"
- " icmp:CODENAME supported ICMP codename\n"
- " icmp:TYPE/CODE ICMP type/code value\n"
- " icmpv6:CODENAME supported ICMPv6 codename\n"
- " icmpv6:TYPE/CODE ICMPv6 type/code value\n"
- " PROTO:0 all other protocols\n\n");
-
- printf(" Supported ICMP codenames:\n");
- i = 0;
- while ((name = id_to_icmp(i++)) != NULL)
- printf(" %s\n", name);
- printf(" Supported ICMPv6 codenames:\n");
- i = 0;
- while ((name = id_to_icmpv6(i++)) != NULL)
- printf(" %s\n", name);
-}