netfilter_decnet.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. #ifndef __LINUX_DECNET_NETFILTER_H
  2. #define __LINUX_DECNET_NETFILTER_H
  3. /* DECnet-specific defines for netfilter.
  4. * This file (C) Steve Whitehouse 1999 derived from the
  5. * ipv4 netfilter header file which is
  6. * (C)1998 Rusty Russell -- This code is GPL.
  7. */
  8. #include <linux/netfilter.h>
  9. /* only for userspace compatibility */
  10. #ifndef __KERNEL__
  11. /* IP Cache bits. */
  12. /* Src IP address. */
  13. #define NFC_DN_SRC 0x0001
  14. /* Dest IP address. */
  15. #define NFC_DN_DST 0x0002
  16. /* Input device. */
  17. #define NFC_DN_IF_IN 0x0004
  18. /* Output device. */
  19. #define NFC_DN_IF_OUT 0x0008
  20. #endif /* ! __KERNEL__ */
  21. /* DECnet Hooks */
  22. /* After promisc drops, checksum checks. */
  23. #define NF_DN_PRE_ROUTING 0
  24. /* If the packet is destined for this box. */
  25. #define NF_DN_LOCAL_IN 1
  26. /* If the packet is destined for another interface. */
  27. #define NF_DN_FORWARD 2
  28. /* Packets coming from a local process. */
  29. #define NF_DN_LOCAL_OUT 3
  30. /* Packets about to hit the wire. */
  31. #define NF_DN_POST_ROUTING 4
  32. /* Input Hello Packets */
  33. #define NF_DN_HELLO 5
  34. /* Input Routing Packets */
  35. #define NF_DN_ROUTE 6
  36. #define NF_DN_NUMHOOKS 7
  37. enum nf_dn_hook_priorities {
  38. NF_DN_PRI_FIRST = INT_MIN,
  39. NF_DN_PRI_CONNTRACK = -200,
  40. NF_DN_PRI_MANGLE = -150,
  41. NF_DN_PRI_NAT_DST = -100,
  42. NF_DN_PRI_FILTER = 0,
  43. NF_DN_PRI_NAT_SRC = 100,
  44. NF_DN_PRI_DNRTMSG = 200,
  45. NF_DN_PRI_LAST = INT_MAX,
  46. };
  47. struct nf_dn_rtmsg {
  48. int nfdn_ifindex;
  49. };
  50. #define NFDN_RTMSG(r) ((unsigned char *)(r) + NLMSG_ALIGN(sizeof(struct nf_dn_rtmsg)))
  51. #ifndef __KERNEL__
  52. /* backwards compatibility for userspace */
  53. #define DNRMG_L1_GROUP 0x01
  54. #define DNRMG_L2_GROUP 0x02
  55. #endif
  56. enum {
  57. DNRNG_NLGRP_NONE,
  58. #define DNRNG_NLGRP_NONE DNRNG_NLGRP_NONE
  59. DNRNG_NLGRP_L1,
  60. #define DNRNG_NLGRP_L1 DNRNG_NLGRP_L1
  61. DNRNG_NLGRP_L2,
  62. #define DNRNG_NLGRP_L2 DNRNG_NLGRP_L2
  63. __DNRNG_NLGRP_MAX
  64. };
  65. #define DNRNG_NLGRP_MAX (__DNRNG_NLGRP_MAX - 1)
  66. #endif /*__LINUX_DECNET_NETFILTER_H*/