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

xt_ipvs.h (680B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_IPVS_H
  3. #define _XT_IPVS_H
  4. #include <linux/types.h>
  5. #include <linux/netfilter.h>
  6. enum {
  7. XT_IPVS_IPVS_PROPERTY = 1 << 0, /* all other options imply this one */
  8. XT_IPVS_PROTO = 1 << 1,
  9. XT_IPVS_VADDR = 1 << 2,
  10. XT_IPVS_VPORT = 1 << 3,
  11. XT_IPVS_DIR = 1 << 4,
  12. XT_IPVS_METHOD = 1 << 5,
  13. XT_IPVS_VPORTCTL = 1 << 6,
  14. XT_IPVS_MASK = (1 << 7) - 1,
  15. XT_IPVS_ONCE_MASK = XT_IPVS_MASK & ~XT_IPVS_IPVS_PROPERTY
  16. };
  17. struct xt_ipvs_mtinfo {
  18. union nf_inet_addr vaddr, vmask;
  19. __be16 vport;
  20. __u8 l4proto;
  21. __u8 fwd_method;
  22. __be16 vportctl;
  23. __u8 invert;
  24. __u8 bitmask;
  25. };
  26. #endif /* _XT_IPVS_H */