• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iproute2/tc/

Lines Matching refs:offmask

112 static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask)
120 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) {
138 sel->keys[hwm].offmask = offmask;
143 static int pack_key32(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask)
147 return pack_key(sel, key, mask, off, offmask);
150 static int pack_key16(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask)
163 return pack_key(sel, key, mask, off, offmask);
166 static int pack_key8(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask)
185 return pack_key(sel, key, mask, off, offmask);
189 int parse_at(int *argc_p, char ***argv_p, int *off, int *offmask)
200 *offmask = -1;
204 *offmask = -1;
218 static int parse_u32(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask)
239 if (parse_at(&argc, &argv, &off, &offmask))
243 res = pack_key32(sel, key, mask, off, offmask);
249 static int parse_u16(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask)
270 if (parse_at(&argc, &argv, &off, &offmask))
273 res = pack_key16(sel, key, mask, off, offmask);
279 static int parse_u8(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask)
303 if (parse_at(&argc, &argv, &off, &offmask))
307 res = pack_key8(sel, key, mask, off, offmask);
320 int offmask = 0;
331 if (parse_at(&argc, &argv, &off, &offmask))
338 if (pack_key(sel, addr.data[0], mask, off, offmask) < 0)
355 int offmask = 0;
366 if (parse_at(&argc, &argv, &off, &offmask))
374 if ((res = pack_key(sel, addr.data[i/32], 0xFFFFFFFF, off+4*(i/32), offmask)) < 0)
378 if ((res = pack_key(sel, addr.data[i/32], mask, off+4*(i/32), offmask)) < 0)
721 sel->offmask = htons(mask);
1028 key->offmask ? "nexthdr+" : "",
1039 fprintf(f, "%04x>>%d at %d ", ntohs(sel->offmask), sel->offshift, sel->offoff);