]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libebt_mark: Drop mark_supplied check
authorPhil Sutter <phil@nwl.cc>
Thu, 23 Aug 2018 15:43:25 +0000 (17:43 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 24 Aug 2018 08:05:51 +0000 (10:05 +0200)
commit85ed1ab6f3f1beb7ea0aee2af2bca70e14f72a9c
tree1c1b63335ff50161e6626fee6c3f1eec0f888f32
parent6a46ca09aef110717e99293696761ebed1cd9596
extensions: libebt_mark: Drop mark_supplied check

Use of this static variable causes trouble as it affects all instances
of this target. So calling xs_init_target() for one instance invalidates
all the others.

Moving the variable into target private data seems not possible since
that would change the target's size and therefore it wouldn't match
anymore with what kernel expects.

So just get rid of it entirely. If a user "forgets" to set a mark value,
the default value of zero applies.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libebt_mark.c