aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2008-10-08 05:35:15 -0400
committerPatrick McHardy <kaber@trash.net>2008-10-08 05:35:15 -0400
commit2d06d4a5cc107046508d860a0b47dbc43b829b79 (patch)
treef3ff0b039d27ba0c5b802e6468b8960b943ab8fb /include
parent815377fe344c799228ca6278613ca3100b069ad5 (diff)
netfilter: change Ebtables function signatures to match Xtables's
Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/netfilter_bridge/ebtables.h43
1 files changed, 26 insertions, 17 deletions
diff --git a/include/linux/netfilter_bridge/ebtables.h b/include/linux/netfilter_bridge/ebtables.h
index 82f854bf37e7..f20a57da7a25 100644
--- a/include/linux/netfilter_bridge/ebtables.h
+++ b/include/linux/netfilter_bridge/ebtables.h
@@ -31,6 +31,9 @@
31 * The 4 lsb are more than enough to store the verdict. */ 31 * The 4 lsb are more than enough to store the verdict. */
32#define EBT_VERDICT_BITS 0x0000000F 32#define EBT_VERDICT_BITS 0x0000000F
33 33
34struct xt_match;
35struct xt_target;
36
34struct ebt_counter 37struct ebt_counter
35{ 38{
36 uint64_t pcnt; 39 uint64_t pcnt;
@@ -208,11 +211,13 @@ struct ebt_match
208 struct list_head list; 211 struct list_head list;
209 const char name[EBT_FUNCTION_MAXNAMELEN]; 212 const char name[EBT_FUNCTION_MAXNAMELEN];
210 bool (*match)(const struct sk_buff *skb, const struct net_device *in, 213 bool (*match)(const struct sk_buff *skb, const struct net_device *in,
211 const struct net_device *out, const void *matchdata, 214 const struct net_device *out, const struct xt_match *match,
212 unsigned int datalen); 215 const void *matchinfo, int offset, unsigned int protoff,
213 bool (*check)(const char *tablename, unsigned int hookmask, 216 bool *hotdrop);
214 const struct ebt_entry *e, void *matchdata, unsigned int datalen); 217 bool (*checkentry)(const char *table, const void *entry,
215 void (*destroy)(void *matchdata, unsigned int datalen); 218 const struct xt_match *match, void *matchinfo,
219 unsigned int hook_mask);
220 void (*destroy)(const struct xt_match *match, void *matchinfo);
216 unsigned int matchsize; 221 unsigned int matchsize;
217 u_int8_t revision; 222 u_int8_t revision;
218 u_int8_t family; 223 u_int8_t family;
@@ -223,12 +228,14 @@ struct ebt_watcher
223{ 228{
224 struct list_head list; 229 struct list_head list;
225 const char name[EBT_FUNCTION_MAXNAMELEN]; 230 const char name[EBT_FUNCTION_MAXNAMELEN];
226 unsigned int (*watcher)(const struct sk_buff *skb, unsigned int hooknr, 231 unsigned int (*target)(struct sk_buff *skb,
227 const struct net_device *in, const struct net_device *out, 232 const struct net_device *in, const struct net_device *out,
228 const void *watcherdata, unsigned int datalen); 233 unsigned int hook_num, const struct xt_target *target,
229 bool (*check)(const char *tablename, unsigned int hookmask, 234 const void *targinfo);
230 const struct ebt_entry *e, void *watcherdata, unsigned int datalen); 235 bool (*checkentry)(const char *table, const void *entry,
231 void (*destroy)(void *watcherdata, unsigned int datalen); 236 const struct xt_target *target, void *targinfo,
237 unsigned int hook_mask);
238 void (*destroy)(const struct xt_target *target, void *targinfo);
232 unsigned int targetsize; 239 unsigned int targetsize;
233 u_int8_t revision; 240 u_int8_t revision;
234 u_int8_t family; 241 u_int8_t family;
@@ -240,12 +247,14 @@ struct ebt_target
240 struct list_head list; 247 struct list_head list;
241 const char name[EBT_FUNCTION_MAXNAMELEN]; 248 const char name[EBT_FUNCTION_MAXNAMELEN];
242 /* returns one of the standard EBT_* verdicts */ 249 /* returns one of the standard EBT_* verdicts */
243 unsigned int (*target)(struct sk_buff *skb, unsigned int hooknr, 250 unsigned int (*target)(struct sk_buff *skb,
244 const struct net_device *in, const struct net_device *out, 251 const struct net_device *in, const struct net_device *out,
245 const void *targetdata, unsigned int datalen); 252 unsigned int hook_num, const struct xt_target *target,
246 bool (*check)(const char *tablename, unsigned int hookmask, 253 const void *targinfo);
247 const struct ebt_entry *e, void *targetdata, unsigned int datalen); 254 bool (*checkentry)(const char *table, const void *entry,
248 void (*destroy)(void *targetdata, unsigned int datalen); 255 const struct xt_target *target, void *targinfo,
256 unsigned int hook_mask);
257 void (*destroy)(const struct xt_target *target, void *targinfo);
249 unsigned int targetsize; 258 unsigned int targetsize;
250 u_int8_t revision; 259 u_int8_t revision;
251 u_int8_t family; 260 u_int8_t family;