xref: /linux/include/uapi/linux/netfilter_bridge.h (revision 1ffad83dffd675cd742286ae82dca7d746cb0da8)
1607ca46eSDavid Howells #ifndef _UAPI__LINUX_BRIDGE_NETFILTER_H
2607ca46eSDavid Howells #define _UAPI__LINUX_BRIDGE_NETFILTER_H
3607ca46eSDavid Howells 
4607ca46eSDavid Howells /* bridge-specific defines for netfilter.
5607ca46eSDavid Howells  */
6607ca46eSDavid Howells 
7*1ffad83dSMikko Rapeli #include <linux/in.h>
8607ca46eSDavid Howells #include <linux/netfilter.h>
9607ca46eSDavid Howells #include <linux/if_ether.h>
10607ca46eSDavid Howells #include <linux/if_vlan.h>
11607ca46eSDavid Howells #include <linux/if_pppox.h>
12607ca46eSDavid Howells 
13607ca46eSDavid Howells /* Bridge Hooks */
14607ca46eSDavid Howells /* After promisc drops, checksum checks. */
15607ca46eSDavid Howells #define NF_BR_PRE_ROUTING	0
16607ca46eSDavid Howells /* If the packet is destined for this box. */
17607ca46eSDavid Howells #define NF_BR_LOCAL_IN		1
18607ca46eSDavid Howells /* If the packet is destined for another interface. */
19607ca46eSDavid Howells #define NF_BR_FORWARD		2
20607ca46eSDavid Howells /* Packets coming from a local process. */
21607ca46eSDavid Howells #define NF_BR_LOCAL_OUT		3
22607ca46eSDavid Howells /* Packets about to hit the wire. */
23607ca46eSDavid Howells #define NF_BR_POST_ROUTING	4
24607ca46eSDavid Howells /* Not really a hook, but used for the ebtables broute table */
25607ca46eSDavid Howells #define NF_BR_BROUTING		5
26607ca46eSDavid Howells #define NF_BR_NUMHOOKS		6
27607ca46eSDavid Howells 
28607ca46eSDavid Howells #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */
29