diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netfilter_bridge/ebtables.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h index 87775264ff0b..94e0a7dc0cb2 100644 --- a/include/linux/netfilter_bridge/ebtables.h +++ b/include/linux/netfilter_bridge/ebtables.h | |||
@@ -46,6 +46,23 @@ struct ebt_replace | |||
46 | /* total size of the entries */ | 46 | /* total size of the entries */ |
47 | unsigned int entries_size; | 47 | unsigned int entries_size; |
48 | /* start of the chains */ | 48 | /* start of the chains */ |
49 | struct ebt_entries __user *hook_entry[NF_BR_NUMHOOKS]; | ||
50 | /* nr of counters userspace expects back */ | ||
51 | unsigned int num_counters; | ||
52 | /* where the kernel will put the old counters */ | ||
53 | struct ebt_counter __user *counters; | ||
54 | char __user *entries; | ||
55 | }; | ||
56 | |||
57 | struct ebt_replace_kernel | ||
58 | { | ||
59 | char name[EBT_TABLE_MAXNAMELEN]; | ||
60 | unsigned int valid_hooks; | ||
61 | /* nr of rules in the table */ | ||
62 | unsigned int nentries; | ||
63 | /* total size of the entries */ | ||
64 | unsigned int entries_size; | ||
65 | /* start of the chains */ | ||
49 | struct ebt_entries *hook_entry[NF_BR_NUMHOOKS]; | 66 | struct ebt_entries *hook_entry[NF_BR_NUMHOOKS]; |
50 | /* nr of counters userspace expects back */ | 67 | /* nr of counters userspace expects back */ |
51 | unsigned int num_counters; | 68 | unsigned int num_counters; |
@@ -255,7 +272,7 @@ struct ebt_table | |||
255 | { | 272 | { |
256 | struct list_head list; | 273 | struct list_head list; |
257 | char name[EBT_TABLE_MAXNAMELEN]; | 274 | char name[EBT_TABLE_MAXNAMELEN]; |
258 | struct ebt_replace *table; | 275 | struct ebt_replace_kernel *table; |
259 | unsigned int valid_hooks; | 276 | unsigned int valid_hooks; |
260 | rwlock_t lock; | 277 | rwlock_t lock; |
261 | /* e.g. could be the table explicitly only allows certain | 278 | /* e.g. could be the table explicitly only allows certain |