Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 1 | #ifndef _UAPI__LINUX_BRIDGE_NETFILTER_H |
| 2 | #define _UAPI__LINUX_BRIDGE_NETFILTER_H |
| 3 | |
| 4 | /* bridge-specific defines for netfilter. |
| 5 | */ |
| 6 | |
Christopher Ferris | ccfaccd | 2016-08-24 12:11:31 -0700 | [diff] [blame] | 7 | #include <linux/in.h> |
Ben Cheng | 30692c6 | 2013-10-15 18:26:18 -0700 | [diff] [blame] | 8 | #include <linux/netfilter.h> |
| 9 | #include <linux/if_ether.h> |
| 10 | #include <linux/if_vlan.h> |
| 11 | #include <linux/if_pppox.h> |
| 12 | |
| 13 | /* Bridge Hooks */ |
| 14 | /* After promisc drops, checksum checks. */ |
| 15 | #define NF_BR_PRE_ROUTING 0 |
| 16 | /* If the packet is destined for this box. */ |
| 17 | #define NF_BR_LOCAL_IN 1 |
| 18 | /* If the packet is destined for another interface. */ |
| 19 | #define NF_BR_FORWARD 2 |
| 20 | /* Packets coming from a local process. */ |
| 21 | #define NF_BR_LOCAL_OUT 3 |
| 22 | /* Packets about to hit the wire. */ |
| 23 | #define NF_BR_POST_ROUTING 4 |
| 24 | /* Not really a hook, but used for the ebtables broute table */ |
| 25 | #define NF_BR_BROUTING 5 |
| 26 | #define NF_BR_NUMHOOKS 6 |
| 27 | |
| 28 | #endif /* _UAPI__LINUX_BRIDGE_NETFILTER_H */ |