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)
commit39c202d228c3da5a5531be847e9b06cc9b787f31
tree0d31c06872bde65e403c5943b9f976673bcb58cf
parent78d9f4d49bbecd101b4e5faf19f8f70719fee2ca
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