summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-04-08 16:04:22 +0200
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>2011-04-08 16:04:22 +0200
commitc0fc3e499f4bacbb7a1976afe33af143d34b068e (patch)
tree86df395a0be148c0d81252a2763b622bb1741e98 /src
parent202ca992312b908e410bed9a480e715e3bca660b (diff)
bitmap:ip,mac type requires "src" for MAC
Enforce that the second "src/dst" parameter of the set match and SET target must be "src", because we have access to the source MAC only in the packet. The previous behaviour, that the type required the second parameter but actually ignored the value was counter-intuitive and confusing. Manpage is updated to reflect the change.
Diffstat (limited to 'src')
-rw-r--r--src/ipset.87
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ipset.8 b/src/ipset.8
index 9603ddc..d9e5ff8 100644
--- a/src/ipset.8
+++ b/src/ipset.8
@@ -302,9 +302,10 @@ matched by the kernel, it will automatically fill out the missing MAC address wi
source MAC address from the packet. If the entry was specified with a timeout value,
the timer starts off when the IP and MAC address pair is complete.
.PP
-Please note, the \fBset\fR match and \fBSET\fR target netfilter kernel modules
-\fBalways\fR use the source MAC address from the packet to match, add or delete
-entries from a \fBbitmap:ip,mac\fR type of set.
+The \fBbitmap:ip,mac\fR type of sets require two \fBsrc/dst\fR parameters of
+the \fBset\fR match and \fBSET\fR target netfilter kernel modules and the second
+one must be \fBsrc\fR to match, add or delete entries because the \fBset\fR match
+and \fBSET\fR target have access to the source MAC address only.
.PP
Examples:
.IP