path: root/src
diff options
authorMart Frauenlob <>2014-09-19 13:30:49 +0200
committerJozsef Kadlecsik <>2014-09-22 07:50:18 +0200
commit4170be5fa40846f6047d3fb21881d49abcfc08d1 (patch)
tree53819cb0b530b719726743415cc43de1cedfc42c /src
parent4acf42ba44af0c64dedfcfc927ab444eb6512750 (diff)
Add description of hash:mac set type to man page.
Signed-off-by: Mart Frauenlob <> Signed-off-by: Jozsef Kadlecsik <>
Diffstat (limited to 'src')
1 files changed, 32 insertions, 0 deletions
diff --git a/src/ipset.8 b/src/ipset.8
index 9b33309..026c361 100644
--- a/src/ipset.8
+++ b/src/ipset.8
@@ -511,6 +511,38 @@ ipset create foo hash:ip netmask 30
ipset add foo
ipset test foo
+.SS hash:mac
+The \fBhash:mac\fR set type uses a hash to store MAC addresses. Zero valued MAC addresses cannot be stored in a \fBhash:mac\fR
+type of set.
+\fICREATE\-OPTIONS\fR := [ \fBhashsize\fR \fIvalue\fR ] [ \fBmaxelem\fR \fIvalue\fR ] [ \fBtimeout\fR \fIvalue\fR ] [ \fBcounters\fP ] [ \fBcomment\fP ] [ \fBskbinfo\fP ]
+\fIADD\-ENTRY\fR := \fImacaddr\fR
+\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 ]
+\fIDEL\-ENTRY\fR := \fImacaddr\fR
+\fITEST\-ENTRY\fR := \fImacaddr\fR
+Optional \fBcreate\fR options:
+\fBhashsize\fR \fIvalue\fR
+The initial hash size for the set, default is 1024. The hash size must be a power
+of two, the kernel automatically rounds up non power of two hash sizes to the first
+correct value.
+\fBmaxelem\fR \fIvalue\fR
+The maximal number of elements which can be stored in the set, default 65536.
+ipset create foo hash:mac
+ipset add foo 01:02:03:04:05:06
+ipset test foo 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.