tc_gact.h 571 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __LINUX_TC_GACT_H
  2. #define __LINUX_TC_GACT_H
  3. #include <linux/types.h>
  4. #include <linux/pkt_cls.h>
  5. #define TCA_ACT_GACT 5
  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_MAX
  24. };
  25. #define TCA_GACT_MAX (__TCA_GACT_MAX - 1)
  26. #endif