ebt_among.h
01: #ifndef __LINUX_BRIDGE_EBT_AMONG_H
02: #define __LINUX_BRIDGE_EBT_AMONG_H
03:
04: #include <linux/types.h>
05:
06: #define EBT_AMONG_DST 0x01
07: #define EBT_AMONG_SRC 0x02
08:
09: <grzes@gnu.univ.gda.pl>
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34: struct ebt_mac_wormhash_tuple {
35: __u32 cmp[2];
36: __be32 ip;
37: };
38:
39: struct ebt_mac_wormhash {
40: int table[257];
41: int poolsize;
42: struct ebt_mac_wormhash_tuple pool[0];
43: };
44:
45: #define ebt_mac_wormhash_size(x) ((x) ? sizeof(struct ebt_mac_wormhash) \
46: + (x)->poolsize * sizeof(struct ebt_mac_wormhash_tuple) : 0)
47:
48: struct ebt_among_info {
49: int wh_dst_ofs;
50: int wh_src_ofs;
51: int bitmask;
52: };
53:
54: #define EBT_AMONG_DST_NEG 0x1
55: #define EBT_AMONG_SRC_NEG 0x2
56:
57: #define ebt_among_wh_dst(x) ((x)->wh_dst_ofs ? \
58: (struct ebt_mac_wormhash*)((char*)(x) + (x)->wh_dst_ofs) : NULL)
59: #define ebt_among_wh_src(x) ((x)->wh_src_ofs ? \
60: (struct ebt_mac_wormhash*)((char*)(x) + (x)->wh_src_ofs) : NULL)
61:
62: #define EBT_AMONG_MATCH "among"
63:
64: #endif
65:
© Andrew Scott 2006 -
2025,
All Rights Reserved