Lines Matching refs:opt
49 struct tc_esfq_qopt opt;
51 memset(&opt, 0, sizeof(opt));
53 opt.hash_kind= TCA_SFQ_HASH_CLASSIC;
58 if (get_size(&opt.quantum, *argv)) {
64 if (get_integer(&opt.perturb_period, *argv, 0)) {
70 if (get_integer((int *) &opt.flows, *argv, 0)) {
76 if (get_integer((int *) &opt.divisor, *argv, 0)) {
79 if(opt.divisor >= 14) {
83 opt.divisor=pow(2,opt.divisor);
87 if (get_integer((int *) &opt.limit, *argv, 0)) {
94 opt.hash_kind= TCA_SFQ_HASH_CLASSIC;
97 opt.hash_kind= TCA_SFQ_HASH_DST;
100 opt.hash_kind= TCA_SFQ_HASH_SRC;
103 opt.hash_kind= TCA_SFQ_HASH_FWMARK;
106 opt.hash_kind= TCA_SFQ_HASH_CTORIGSRC;
109 opt.hash_kind= TCA_SFQ_HASH_CTORIGDST;
112 opt.hash_kind= TCA_SFQ_HASH_CTREPLSRC;
115 opt.hash_kind= TCA_SFQ_HASH_CTREPLDST;
118 opt.hash_kind= TCA_SFQ_HASH_CTNATCHG;
135 addattr_l(n, 1024, TCA_OPTIONS, &opt, sizeof(opt));
139 static int esfq_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
144 if (opt == NULL)
147 if (RTA_PAYLOAD(opt) < sizeof(*qopt))
149 qopt = RTA_DATA(opt);