Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:ap

210 	const struct aodv_rreq *ap = (const struct aodv_rreq *)dat;
212 ND_TCHECK(*ap);
213 if (length < sizeof(*ap))
217 ap->rreq_type & RREQ_JOIN ? "[J]" : "",
218 ap->rreq_type & RREQ_REPAIR ? "[R]" : "",
219 ap->rreq_type & RREQ_GRAT ? "[G]" : "",
220 ap->rreq_type & RREQ_DEST ? "[D]" : "",
221 ap->rreq_type & RREQ_UNKNOWN ? "[U] " : " ",
222 ap->rreq_hops,
223 (unsigned long)EXTRACT_32BITS(&ap->rreq_id),
224 ipaddr_string(ndo, &ap->rreq_da),
225 (unsigned long)EXTRACT_32BITS(&ap->rreq_ds),
226 ipaddr_string(ndo, &ap->rreq_oa),
227 (unsigned long)EXTRACT_32BITS(&ap->rreq_os)));
228 i = length - sizeof(*ap);
230 aodv_extension(ndo, (const struct aodv_ext *)(dat + sizeof(*ap)), i);
241 const struct aodv_rrep *ap = (const struct aodv_rrep *)dat;
243 ND_TCHECK(*ap);
244 if (length < sizeof(*ap))
248 ap->rrep_type & RREP_REPAIR ? "[R]" : "",
249 ap->rrep_type & RREP_ACK ? "[A] " : " ",
250 ap->rrep_ps & RREP_PREFIX_MASK,
251 ap->rrep_hops,
252 ipaddr_string(ndo, &ap->rrep_da),
253 (unsigned long)EXTRACT_32BITS(&ap->rrep_ds),
254 ipaddr_string(ndo, &ap->rrep_oa),
255 (unsigned long)EXTRACT_32BITS(&ap->rrep_life)));
256 i = length - sizeof(*ap);
258 aodv_extension(ndo, (const struct aodv_ext *)(dat + sizeof(*ap)), i);
269 const struct aodv_rerr *ap = (const struct aodv_rerr *)dat;
272 ND_TCHECK(*ap);
273 if (length < sizeof(*ap))
276 ap->rerr_flags & RERR_NODELETE ? "[D]" : "",
277 ap->rerr_dc, length));
278 dp = (struct rerr_unreach *)(dat + sizeof(*ap));
279 i = length - sizeof(*ap);
280 for (dc = ap->rerr_dc; dc != 0; dc--) {
304 const struct aodv_rreq6 *ap = (const struct aodv_rreq6 *)dat;
306 ND_TCHECK(*ap);
307 if (length < sizeof(*ap))
311 ap->rreq_type & RREQ_JOIN ? "[J]" : "",
312 ap->rreq_type & RREQ_REPAIR ? "[R]" : "",
313 ap->rreq_type & RREQ_GRAT ? "[G]" : "",
314 ap->rreq_type & RREQ_DEST ? "[D]" : "",
315 ap->rreq_type & RREQ_UNKNOWN ? "[U] " : " ",
316 ap->rreq_hops,
317 (unsigned long)EXTRACT_32BITS(&ap->rreq_id),
318 ip6addr_string(ndo, &ap->rreq_da),
319 (unsigned long)EXTRACT_32BITS(&ap->rreq_ds),
320 ip6addr_string(ndo, &ap->rreq_oa),
321 (unsigned long)EXTRACT_32BITS(&ap->rreq_os)));
322 i = length - sizeof(*ap);
324 aodv_extension(ndo, (const struct aodv_ext *)(dat + sizeof(*ap)), i);
343 const struct aodv_rrep6 *ap = (const struct aodv_rrep6 *)dat;
345 ND_TCHECK(*ap);
346 if (length < sizeof(*ap))
350 ap->rrep_type & RREP_REPAIR ? "[R]" : "",
351 ap->rrep_type & RREP_ACK ? "[A] " : " ",
352 ap->rrep_ps & RREP_PREFIX_MASK,
353 ap->rrep_hops,
354 ip6addr_string(ndo, &ap->rrep_da),
355 (unsigned long)EXTRACT_32BITS(&ap->rrep_ds),
356 ip6addr_string(ndo, &ap->rrep_oa),
357 (unsigned long)EXTRACT_32BITS(&ap->rrep_life)));
358 i = length - sizeof(*ap);
360 aodv_extension(ndo, (const struct aodv_ext *)(dat + sizeof(*ap)), i);
379 const struct aodv_rerr *ap = (const struct aodv_rerr *)dat;
382 ND_TCHECK(*ap);
383 if (length < sizeof(*ap))
386 ap->rerr_flags & RERR_NODELETE ? "[D]" : "",
387 ap->rerr_dc, length));
388 dp6 = (struct rerr_unreach6 *)(void *)(ap + 1);
389 i = length - sizeof(*ap);
390 for (dc = ap->rerr_dc; dc != 0; dc--) {
417 const struct aodv_rreq6_draft_01 *ap = (const struct aodv_rreq6_draft_01 *)dat;
419 ND_TCHECK(*ap);
420 if (length < sizeof(*ap))
424 ap->rreq_type & RREQ_JOIN ? "[J]" : "",
425 ap->rreq_type & RREQ_REPAIR ? "[R]" : "",
426 ap->rreq_type & RREQ_GRAT ? "[G]" : "",
427 ap->rreq_type & RREQ_DEST ? "[D]" : "",
428 ap->rreq_type & RREQ_UNKNOWN ? "[U] " : " ",
429 ap->rreq_hops,
430 (unsigned long)EXTRACT_32BITS(&ap->rreq_id),
431 ip6addr_string(ndo, &ap->rreq_da),
432 (unsigned long)EXTRACT_32BITS(&ap->rreq_ds),
433 ip6addr_string(ndo, &ap->rreq_oa),
434 (unsigned long)EXTRACT_32BITS(&ap->rreq_os)));
435 i = length - sizeof(*ap);
437 aodv_extension(ndo, (const struct aodv_ext *)(dat + sizeof(*ap)), i);
456 const struct aodv_rrep6_draft_01 *ap = (const struct aodv_rrep6_draft_01 *)dat;
458 ND_TCHECK(*ap);
459 if (length < sizeof(*ap))
463 ap->rrep_type & RREP_REPAIR ? "[R]" : "",
464 ap->rrep_type & RREP_ACK ? "[A] " : " ",
465 ap->rrep_ps & RREP_PREFIX_MASK,
466 ap->rrep_hops,
467 ip6addr_string(ndo, &ap->rrep_da),
468 (unsigned long)EXTRACT_32BITS(&ap->rrep_ds),
469 ip6addr_string(ndo, &ap->rrep_oa),
470 (unsigned long)EXTRACT_32BITS(&ap->rrep_life)));
471 i = length - sizeof(*ap);
473 aodv_extension(ndo, (const struct aodv_ext *)(dat + sizeof(*ap)), i);
492 const struct aodv_rerr *ap = (const struct aodv_rerr *)dat;
495 ND_TCHECK(*ap);
496 if (length < sizeof(*ap))
499 ap->rerr_flags & RERR_NODELETE ? "[D]" : "",
500 ap->rerr_dc, length));
501 dp6 = (struct rerr_unreach6_draft_01 *)(void *)(ap + 1);
502 i = length - sizeof(*ap);
503 for (dc = ap->rerr_dc; dc != 0; dc--) {