]> 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)
commita4328d87fd7863d78ec6bb6740e4ffd8346c6f58
tree0d31c06872bde65e403c5943b9f976673bcb58cf
parent8954e77b97d90fdf5052096e225584f179d26de1
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