Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __LINUX_TC_GACT_H |
| 2 | #define __LINUX_TC_GACT_H |
| 3 | |
Jaswinder Singh Rajput | 2d594c0 | 2009-01-30 20:10:05 +0530 | [diff] [blame] | 4 | #include <linux/types.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 5 | #include <linux/pkt_cls.h> |
| 6 | |
| 7 | #define TCA_ACT_GACT 5 |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 8 | struct tc_gact { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | tc_gen; |
| 10 | |
| 11 | }; |
| 12 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 13 | struct tc_gact_p { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | #define PGACT_NONE 0 |
| 15 | #define PGACT_NETRAND 1 |
| 16 | #define PGACT_DETERM 2 |
| 17 | #define MAX_RAND (PGACT_DETERM + 1 ) |
| 18 | __u16 ptype; |
| 19 | __u16 pval; |
| 20 | int paction; |
| 21 | }; |
| 22 | |
Eric Dumazet | d94d9fe | 2009-11-04 09:50:58 -0800 | [diff] [blame] | 23 | enum { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | TCA_GACT_UNSPEC, |
| 25 | TCA_GACT_TM, |
| 26 | TCA_GACT_PARMS, |
| 27 | TCA_GACT_PROB, |
| 28 | __TCA_GACT_MAX |
| 29 | }; |
| 30 | #define TCA_GACT_MAX (__TCA_GACT_MAX - 1) |
| 31 | |
| 32 | #endif |