Skip to content

Commit 91270cf

Browse files
kaberDavid S. Miller
authored andcommitted
[NETFILTER]: x_tables: add data member to struct xt_match
Shared match functions can use this to make runtime decisions basen on the used match. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 53e2665 commit 91270cf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/linux/netfilter/x_tables.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ struct xt_match
185185
/* Set this to THIS_MODULE if you are a module, otherwise NULL */
186186
struct module *me;
187187

188+
/* Free to use by each match */
189+
unsigned long data;
190+
188191
char *table;
189192
unsigned int matchsize;
190193
unsigned int hooks;

0 commit comments

Comments
 (0)