• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/iproute2/tc/

Lines Matching defs:off

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) {
133 if (off % 4)
137 sel->keys[hwm].off = off;
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)
155 if ((off & 3) == 0) {
159 off &= ~3;
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)
171 if ((off & 3) == 0) {
174 } else if ((off & 3) == 1) {
177 } else if ((off & 3) == 2) {
181 off &= ~3;
185 return pack_key(sel, key, mask, off, offmask);
189 int parse_at(int *argc_p, char ***argv_p, int *off, int *offmask)
208 if (get_integer(off, p, 0))
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);
313 static int parse_ip_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off)
331 if (parse_at(&argc, &argv, &off, &offmask))
338 if (pack_key(sel, addr.data[0], mask, off, offmask) < 0)
347 static int parse_ip6_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off)
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)
699 int off;
701 if (get_integer(&off, *argv, 0))
703 sel->off = off;
706 int off;
708 if (get_integer(&off, *argv, 0))
710 sel->offoff = off;
711 if (off%2) {
1029 key->off);
1040 if (sel->off)
1041 fprintf(f, "plus %d ", sel->off);