logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

netfilter_bridge.h (1168B)


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