]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: ebtables: Add support for specifying match revision
authorBernie Harris <bernie.harris@alliedtelesis.co.nz>
Wed, 21 Mar 2018 02:42:15 +0000 (15:42 +1300)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 30 Mar 2018 09:03:39 +0000 (11:03 +0200)
commitb2bbe7eb3d8fda51a3e97a71be16660977151d12
tree0d31c06872bde65e403c5943b9f976673bcb58cf
parentf3a01736506a6c937e84919357f2bad38cd0bed0
netfilter: ebtables: Add support for specifying match revision

Currently ebtables assumes that the revision number of all match
modules is 0, which is an issue when trying to use existing
xtables matches with ebtables. The solution is to modify ebtables
to allow extensions to specify a revision number, similar to
iptables. This gets passed down to the kernel, which is then able
to find the match module correctly.

To main binary backwards compatibility, the size of the ebt_entry
structures is not changed, only the size of the name field is
decreased by 1 byte to make room for the revision field.

Signed-off-by: Bernie Harris <bernie.harris@alliedtelesis.co.nz>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter_bridge/ebtables.h
net/bridge/netfilter/ebtables.c