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_connbytes.h (577B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _XT_CONNBYTES_H
  3. #define _XT_CONNBYTES_H
  4. #include <linux/types.h>
  5. enum xt_connbytes_what {
  6. XT_CONNBYTES_PKTS,
  7. XT_CONNBYTES_BYTES,
  8. XT_CONNBYTES_AVGPKT,
  9. };
  10. enum xt_connbytes_direction {
  11. XT_CONNBYTES_DIR_ORIGINAL,
  12. XT_CONNBYTES_DIR_REPLY,
  13. XT_CONNBYTES_DIR_BOTH,
  14. };
  15. struct xt_connbytes_info {
  16. struct {
  17. __aligned_u64 from; /* count to be matched */
  18. __aligned_u64 to; /* count to be matched */
  19. } count;
  20. __u8 what; /* ipt_connbytes_what */
  21. __u8 direction; /* ipt_connbytes_direction */
  22. };
  23. #endif