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_ipv4.h (1488B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /* IPv4-specific defines for netfilter.
  3. * (C)1998 Rusty Russell -- This code is GPL.
  4. */
  5. #ifndef __LINUX_IP_NETFILTER_H
  6. #define __LINUX_IP_NETFILTER_H
  7. #include <linux/netfilter.h>
  8. /* only for userspace compatibility */
  9. #include <limits.h> /* for INT_MIN, INT_MAX */
  10. /* IP Hooks */
  11. /* After promisc drops, checksum checks. */
  12. #define NF_IP_PRE_ROUTING 0
  13. /* If the packet is destined for this box. */
  14. #define NF_IP_LOCAL_IN 1
  15. /* If the packet is destined for another interface. */
  16. #define NF_IP_FORWARD 2
  17. /* Packets coming from a local process. */
  18. #define NF_IP_LOCAL_OUT 3
  19. /* Packets about to hit the wire. */
  20. #define NF_IP_POST_ROUTING 4
  21. #define NF_IP_NUMHOOKS 5
  22. enum nf_ip_hook_priorities {
  23. NF_IP_PRI_FIRST = INT_MIN,
  24. NF_IP_PRI_RAW_BEFORE_DEFRAG = -450,
  25. NF_IP_PRI_CONNTRACK_DEFRAG = -400,
  26. NF_IP_PRI_RAW = -300,
  27. NF_IP_PRI_SELINUX_FIRST = -225,
  28. NF_IP_PRI_CONNTRACK = -200,
  29. NF_IP_PRI_MANGLE = -150,
  30. NF_IP_PRI_NAT_DST = -100,
  31. NF_IP_PRI_FILTER = 0,
  32. NF_IP_PRI_SECURITY = 50,
  33. NF_IP_PRI_NAT_SRC = 100,
  34. NF_IP_PRI_SELINUX_LAST = 225,
  35. NF_IP_PRI_CONNTRACK_HELPER = 300,
  36. NF_IP_PRI_CONNTRACK_CONFIRM = INT_MAX,
  37. NF_IP_PRI_LAST = INT_MAX,
  38. };
  39. /* Arguments for setsockopt SOL_IP: */
  40. /* 2.0 firewalling went from 64 through 71 (and +256, +512, etc). */
  41. /* 2.2 firewalling (+ masq) went from 64 through 76 */
  42. /* 2.4 firewalling went 64 through 67. */
  43. #define SO_ORIGINAL_DST 80
  44. #endif /* __LINUX_IP_NETFILTER_H */