1 #ifndef __LINUX_BRIDGE_NETFILTER_H
2 #define __LINUX_BRIDGE_NETFILTER_H
4 /* bridge-specific defines for netfilter.
7 #include <linux/config.h>
8 #include <linux/netfilter.h>
11 /* After promisc drops, checksum checks. */
12 #define NF_BR_PRE_ROUTING 0
13 /* If the packet is destined for this box. */
14 #define NF_BR_LOCAL_IN 1
15 /* If the packet is destined for another interface. */
16 #define NF_BR_FORWARD 2
17 /* Packets coming from a local process. */
18 #define NF_BR_LOCAL_OUT 3
19 /* Packets about to hit the wire. */
20 #define NF_BR_POST_ROUTING 4
21 /* Not really a hook, but used for the ebtables broute table */
22 #define NF_BR_BROUTING 5
23 #define NF_BR_NUMHOOKS 6
25 enum nf_br_hook_priorities {
26 NF_BR_PRI_FIRST = INT_MIN,
27 NF_BR_PRI_FILTER_BRIDGED = -200,
28 NF_BR_PRI_FILTER_OTHER = 200,
29 NF_BR_PRI_NAT_DST_BRIDGED = -300,
30 NF_BR_PRI_NAT_DST_OTHER = 100,
31 NF_BR_PRI_NAT_SRC = 300,
32 NF_BR_PRI_LAST = INT_MAX,