diff options
author | Tomasz Chilinski <tomasz.chilinski@chilan.com> | 2016-05-05 07:32:19 +0200 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2016-05-05 07:36:19 +0200 |
commit | 9e0d9b82fb54cec29f35bbb59fcfa83e5e7d8654 (patch) | |
tree | b68626c49e593fafb9079045bdc5c168168b5edb /src | |
parent | 437e42ada7253827a4ed3f25929864acd042c5b5 (diff) | |
download | ipset-9e0d9b82fb54cec29f35bbb59fcfa83e5e7d8654.tar.gz |
hash:ipmac type support added to ipset, userspace part
Signed-off-by: Tomasz Chili??ski <tomasz.chilinski@chilan.com>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipset.8 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/ipset.8 b/src/ipset.8 index a919afc..a578930 100644 --- a/src/ipset.8 +++ b/src/ipset.8 @@ -551,6 +551,28 @@ ipset add foo 01:02:03:04:05:06 .IP ipset test foo 01:02:03:04:05:06 +.SS hash:ip,mac +The \fBhash:ip,mac\fR set type uses a hash to store IP and a MAC address pairs. Zero valued MAC addresses cannot be stored in a \fBhash:ip,mac\fR +type of set. +.PP +\fICREATE\-OPTIONS\fR := [ \fBfamily\fR { \fBinet\fR | \fBinet6\fR } ] | [ \fBhashsize\fR \fIvalue\fR ] [ \fBmaxelem\fR \fIvalue\fR ] [ \fBtimeout\fR \fIvalue\fR ] [ \fBcounters\fP ] [ \fBcomment\fP ] [ \fBskbinfo\fP ] +.PP +\fIADD\-ENTRY\fR := \fIipaddr\fR,\fImacaddr\fR +.PP +\fIADD\-OPTIONS\fR := [ \fBtimeout\fR \fIvalue\fR ] [ \fBpackets\fR \fIvalue\fR ] [ \fBbytes\fR \fIvalue\fR ] [ \fBcomment\fR \fIstring\fR ] [ \fBskbmark\fR \fIvalue\fR ] [ \fBskbprio\fR \fIvalue\fR ] [ \fBskbqueue\fR \fIvalue\fR ] +.PP +\fIDEL\-ENTRY\fR := \fIipaddr\fR,\fImacaddr\fR +.PP +\fITEST\-ENTRY\fR := \fIipaddr\fR,\fImacaddr\fR +.PP +Examples: +.IP +ipset create foo hash:ip,mac +.IP +ipset add foo 1.1.1.1,01:02:03:04:05:06 +.IP +ipset test foo 1.1.1.1,01:02:03:04:05:06 + .SS hash:net The \fBhash:net\fR set type uses a hash to store different sized IP network addresses. Network address with zero prefix size cannot be stored in this type of sets. |