Go to the documentation of this file. 1 #ifndef __LINUX_BRIDGE_EBT_AMONG_H
2 #define __LINUX_BRIDGE_EBT_AMONG_H
4 #include <linux/types.h>
6 #define EBT_AMONG_DST 0x01
7 #define EBT_AMONG_SRC 0x02
45 #define ebt_mac_wormhash_size(x) ((x) ? sizeof(struct ebt_mac_wormhash) \
46 + (x)->poolsize * sizeof(struct ebt_mac_wormhash_tuple) : 0)
54 #define EBT_AMONG_DST_NEG 0x1
55 #define EBT_AMONG_SRC_NEG 0x2
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)
62 #define EBT_AMONG_MATCH "among"