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