• Home
  • Raw
  • Download

Lines Matching refs:sel

62 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey)  in pedit_parse_nopopt()  argument
122 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) in pack_key() argument
124 int hwm = sel->nkeys; in pack_key()
134 sel->keys[hwm].val = tkey->val; in pack_key()
135 sel->keys[hwm].mask = tkey->mask; in pack_key()
136 sel->keys[hwm].off = tkey->off; in pack_key()
137 sel->keys[hwm].at = tkey->at; in pack_key()
138 sel->keys[hwm].offmask = tkey->offmask; in pack_key()
139 sel->keys[hwm].shift = tkey->shift; in pack_key()
140 sel->nkeys++; in pack_key()
146 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) in pack_key32() argument
158 return pack_key(sel,tkey); in pack_key32()
162 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) in pack_key16() argument
200 return pack_key(sel,tkey); in pack_key16()
205 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) in pack_key8() argument
233 return pack_key(sel,tkey); in pack_key8()
268 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,st… in parse_cmd() argument
313 res = pack_key8(retain,sel,tkey); in parse_cmd()
318 res = pack_key16(retain,sel,tkey); in parse_cmd()
323 res = pack_key32(retain,sel,tkey); in parse_cmd()
338 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) in parse_offset() argument
407 res = parse_cmd(&argc, &argv, len, TU32,retain,sel,tkey); in parse_offset()
415 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) in parse_munge() argument
429 res = parse_offset(&argc, &argv,sel,&tkey); in parse_munge()
441 res = p->parse_peopt(&argc, &argv, sel,&tkey); in parse_munge()
464 struct tc_pedit_sel sel; in parse_pedit() member
466 } sel; in parse_pedit() local
473 memset(&sel, 0, sizeof(sel)); in parse_pedit()
491 if (parse_munge(&argc, &argv,&sel.sel)) { in parse_pedit()
510 sel.sel.action = TC_ACT_RECLASSIFY; in parse_pedit()
513 sel.sel.action = TC_ACT_PIPE; in parse_pedit()
517 sel.sel.action = TC_ACT_SHOT; in parse_pedit()
520 sel.sel.action = TC_ACT_UNSPEC; in parse_pedit()
523 sel.sel.action = TC_ACT_OK; in parse_pedit()
531 if (get_u32(&sel.sel.index, *argv, 10)) { in parse_pedit()
543 …addattr_l(n, MAX_MSG, TCA_PEDIT_PARMS,&sel, sizeof(sel.sel)+sel.sel.nkeys*sizeof(struct tc_pedit_k… in parse_pedit()
554 struct tc_pedit_sel *sel; in print_pedit() local
567 sel = RTA_DATA(tb[TCA_PEDIT_PARMS]); in print_pedit()
569 fprintf(f, " pedit action %s keys %d\n ", action_n2a(sel->action, b1, sizeof (b1)),sel->nkeys); in print_pedit()
570 fprintf(f, "\t index %d ref %d bind %d", sel->index,sel->refcnt, sel->bindcnt); in print_pedit()
578 if (sel->nkeys) { in print_pedit()
580 struct tc_pedit_key *key = sel->keys; in print_pedit()
582 for (i=0; i<sel->nkeys; i++, key++) { in print_pedit()
590 fprintf(f, "\npedit %x keys %d is not LEGIT", sel->index,sel->nkeys); in print_pedit()