summaryrefslogtreecommitdiffstats
path: root/include/ebtables_u.h
diff options
context:
space:
mode:
authorBernie Harris <bernie.harris@alliedtelesis.co.nz>2018-03-21 15:42:29 +1300
committerPablo Neira Ayuso <pablo@netfilter.org>2018-04-27 00:27:31 +0200
commitb1cdae87f25021eb835872d86d6e7206bd421c3f (patch)
tree24f875d58b4f4de5722c96d1eff8baeb0c6e61f2 /include/ebtables_u.h
parent2e783b2277665c467138e7685309622456c41db4 (diff)
extensions: Add string filter to ebtables
This patch is part of a proposal to add a string filter to ebtables, which would be similar to the string filter in iptables. Like iptables, the ebtables filter uses the xt_string module, however some modifications have been made for this to work correctly. Currently ebtables assumes that the revision number of all match modules is 0. The xt_string module doesn't register a match with revision 0 so 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. Signed-off-by: Bernie Harris <bernie.harris@alliedtelesis.co.nz> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/ebtables_u.h')
-rw-r--r--include/ebtables_u.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ebtables_u.h b/include/ebtables_u.h
index 17afa94..c858996 100644
--- a/include/ebtables_u.h
+++ b/include/ebtables_u.h
@@ -144,6 +144,7 @@ struct ebt_u_entry
struct ebt_u_match
{
char name[EBT_FUNCTION_MAXNAMELEN];
+ uint8_t revision;
/* size of the real match data */
unsigned int size;
void (*help)(void);