tc_gact.h revision 8e64f6fe1fd7c7f52773a1ae10915b060fc008b8
1#ifndef __LINUX_TC_GACT_H 2#define __LINUX_TC_GACT_H 3 4#include <linux/pkt_cls.h> 5 6#define TCA_ACT_GACT 5 7struct tc_gact 8{ 9 tc_gen; 10 11}; 12 13#ifdef CONFIG_GACT_PROB 14struct tc_gact_p 15{ 16#define PGACT_NONE 0 17#define PGACT_NETRAND 1 18#define PGACT_DETERM 2 19#define MAX_RAND (PGACT_DETERM + 1 ) 20 __u16 ptype; 21 __u16 pval; 22 int paction; 23}; 24#endif 25 26enum 27{ 28 TCA_GACT_UNSPEC, 29 TCA_GACT_TM, 30 TCA_GACT_PARMS, 31 TCA_GACT_PROB, 32 __TCA_GACT_MAX 33}; 34#define TCA_GACT_MAX (__TCA_GACT_MAX - 1) 35 36#endif 37