diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-30 22:28:48 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:32:05 -0500 |
commit | 1e419cd9953f59d06d7b88d0e2911a68a0044f33 (patch) | |
tree | 12ffc09cb978ec1c40a4e3c96307df6b3567f160 /include | |
parent | df07a81e939a0176b125bc83cf22dbb5e380ae9f (diff) |
[EBTABLES]: Split ebt_replace into user and kernel variants, annotate.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
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 |