diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-01-14 15:06:00 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2012-01-14 15:06:00 +0100 |
commit | 36e483b303b11890e870eba5a8c798b170244cb3 (patch) | |
tree | 51894eeecb17e00f76405043a2b394e1fdbd00c9 /src | |
parent | 64f47a74c303ba53a306e6ad4cd0c7f40a165eea (diff) |
Support hostnames and service names with dash
The square brackets are introduced as an escape mechanism to
enter hostnames or service names with dash in order to avoid
mixing up the dash in the name with the range notation.
Problem reported by Stephen Hemminger and Marc Guardiola.
Diffstat (limited to 'src')
-rw-r--r-- | src/ipset.8 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipset.8 b/src/ipset.8 index 3c52048..a2ee39f 100644 --- a/src/ipset.8 +++ b/src/ipset.8 @@ -256,6 +256,12 @@ as \fBnomatch\fR are skipped as if those were no added to the set, which makes possible to build up sets with exceptions. See the example at hash type \fBhash:net\fR below. +If host names or service names with dash in the name are used instead of IP +addresses or service numbers, then the host name or service name must be enclosed +in square brackets. Example: + +.IP +ipset add foo [test\-hostname],[ftp\-data] .SS bitmap:ip The \fBbitmap:ip\fR set type uses a memory range to store either IPv4 host (default) or IPv4 network addresses. A \fBbitmap:ip\fR type of set can store up |