Skip to content

Commit

Permalink
[NETFILTER]: x_tables: add data member to struct xt_match
Browse files Browse the repository at this point in the history
Shared match functions can use this to make runtime decisions basen on the
used match.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 22, 2006
1 parent 53e2665 commit 91270cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/linux/netfilter/x_tables.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ struct xt_match
/* Set this to THIS_MODULE if you are a module, otherwise NULL */
struct module *me;

/* Free to use by each match */
unsigned long data;

char *table;
unsigned int matchsize;
unsigned int hooks;
Expand Down

0 comments on commit 91270cf

Please sign in to comment.