diff options
| author | Jamal Hadi Salim <hadi@cyberus.ca> | 2004-09-01 08:35:47 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2004-09-01 08:35:47 -0700 |
| commit | be84c7f6cf99539af42436f686b84b6b8fbc509e (patch) | |
| tree | e2c182926c7c604aaa1974b54c456465a0c3a96f /include/linux | |
| parent | 5b82ac35c84a3528c0e781373f284bd8123a36b5 (diff) | |
[PKT_SCHED]: Add gact generic actions.
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/tc_act/tc_gact.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/linux/tc_act/tc_gact.h b/include/linux/tc_act/tc_gact.h new file mode 100644 index 000000000000..23a03eb630db --- /dev/null +++ b/include/linux/tc_act/tc_gact.h @@ -0,0 +1,34 @@ +#ifndef __LINUX_TC_GACT_H +#define __LINUX_TC_GACT_H + +#include <linux/pkt_cls.h> + +#define TCA_ACT_GACT 5 +struct tc_gact +{ + tc_gen; + +}; + +struct tc_gact_p +{ +#define PGACT_NONE 0 +#define PGACT_NETRAND 1 +#define PGACT_DETERM 2 +#define MAX_RAND (PGACT_DETERM + 1 ) + __u16 ptype; + __u16 pval; + int paction; +}; + +enum +{ + TCA_GACT_UNSPEC, + TCA_GACT_TM, + TCA_GACT_PARMS, + TCA_GACT_PROB, + __TCA_GACT_MAX +}; +#define TCA_GACT_MAX (__TCA_GACT_MAX - 1) + +#endif |
