mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
netfilter: ebtables: do centralized size checking
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
This commit is contained in:
parent
d2f26037a3
commit
18219d3f7d
20 changed files with 104 additions and 88 deletions
|
|
@ -215,6 +215,7 @@ struct ebt_match
|
|||
int (*check)(const char *tablename, unsigned int hookmask,
|
||||
const struct ebt_entry *e, void *matchdata, unsigned int datalen);
|
||||
void (*destroy)(void *matchdata, unsigned int datalen);
|
||||
unsigned int matchsize;
|
||||
struct module *me;
|
||||
};
|
||||
|
||||
|
|
@ -229,6 +230,7 @@ struct ebt_watcher
|
|||
int (*check)(const char *tablename, unsigned int hookmask,
|
||||
const struct ebt_entry *e, void *watcherdata, unsigned int datalen);
|
||||
void (*destroy)(void *watcherdata, unsigned int datalen);
|
||||
unsigned int targetsize;
|
||||
struct module *me;
|
||||
};
|
||||
|
||||
|
|
@ -244,6 +246,7 @@ struct ebt_target
|
|||
int (*check)(const char *tablename, unsigned int hookmask,
|
||||
const struct ebt_entry *e, void *targetdata, unsigned int datalen);
|
||||
void (*destroy)(void *targetdata, unsigned int datalen);
|
||||
unsigned int targetsize;
|
||||
struct module *me;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue