summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ipset_hash_ip.c9
-rw-r--r--src/ipset_list_set.c4
2 files changed, 7 insertions, 6 deletions
diff --git a/src/ipset_hash_ip.c b/src/ipset_hash_ip.c
index dfef47f..0af65b7 100644
--- a/src/ipset_hash_ip.c
+++ b/src/ipset_hash_ip.c
@@ -70,13 +70,14 @@ static const char hash_ip_usage[] =
" [family inet|inet6]\n"
" [hashsize VALUE] [maxelem VALUE]\n"
" [netmask CIDR] [timeout VALUE]\n"
-"add SETNAME IP|IP/CIDR|FROM-TO [timeout VALUE]\n"
-"del SETNAME IP|IP/CIDR|FROM-TO\n"
+"add SETNAME IP [timeout VALUE]\n"
+"del SETNAME IP\n"
"test SETNAME IP\n\n"
"where depending on the INET family\n"
-" IP, FROM and TO are IPv4 or IPv6 addresses (or hostnames),\n"
+" IP is a valid IPv4 or IPv6 address (or hostname),\n"
" CIDR is a valid IPv4 or IPv6 CIDR prefix.\n"
-" Adding/deleting multiple elements is supported for IPv4 only.\n";
+" Adding/deleting multiple elements in IP/CIDR or FROM-TO form\n"
+" is supported for IPv4.\n";
struct ipset_type ipset_hash_ip0 = {
.name = "hash:ip",
diff --git a/src/ipset_list_set.c b/src/ipset_list_set.c
index fcb4549..7e7ddff 100644
--- a/src/ipset_list_set.c
+++ b/src/ipset_list_set.c
@@ -42,8 +42,8 @@ static const char list_set_usage[] =
"create SETNAME list:set\n"
" [size VALUE] [timeout VALUE]\n"
"add SETNAME NAME [before|after NAME] [timeout VALUE]\n"
-"del SETNAME NAME\n"
-"test SETNAME NAME\n\n"
+"del SETNAME NAME [before|after NAME]\n"
+"test SETNAME NAME [before|after NAME]\n\n"
"where NAME are existing set names.\n";
struct ipset_type ipset_list_set0 = {