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

tc_gact.h (626B)


  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __LINUX_TC_GACT_H
  3. #define __LINUX_TC_GACT_H
  4. #include <linux/types.h>
  5. #include <linux/pkt_cls.h>
  6. struct tc_gact {
  7. tc_gen;
  8. };
  9. struct tc_gact_p {
  10. #define PGACT_NONE 0
  11. #define PGACT_NETRAND 1
  12. #define PGACT_DETERM 2
  13. #define MAX_RAND (PGACT_DETERM + 1 )
  14. __u16 ptype;
  15. __u16 pval;
  16. int paction;
  17. };
  18. enum {
  19. TCA_GACT_UNSPEC,
  20. TCA_GACT_TM,
  21. TCA_GACT_PARMS,
  22. TCA_GACT_PROB,
  23. TCA_GACT_PAD,
  24. __TCA_GACT_MAX
  25. };
  26. #define TCA_GACT_MAX (__TCA_GACT_MAX - 1)
  27. #endif