Lines Matching full:length
163 nd_uint8_t length; /* extension length */
177 const struct aodv_ext *ep, u_int length)
186 if (length < sizeof(struct aodv_hello))
188 if (GET_U_1(ep->length) < 4) {
189 ND_PRINT("\n\text HELLO - bad length %u",
190 GET_U_1(ep->length));
199 GET_U_1(ep->length));
209 aodv_rreq(netdissect_options *ndo, const u_char *dat, u_int length)
215 if (length < sizeof(*ap))
218 "\tdst %s seq %u src %s seq %u", length,
230 i = length - sizeof(*ap);
240 aodv_rrep(netdissect_options *ndo, const u_char *dat, u_int length)
246 if (length < sizeof(*ap))
249 "\tdst %s dseq %u src %s %u ms", length,
258 i = length - sizeof(*ap);
268 aodv_rerr(netdissect_options *ndo, const u_char *dat, u_int length)
275 if (length < sizeof(*ap))
279 GET_U_1(ap->rerr_dc), length);
281 i = length - sizeof(*ap);
298 aodv_v6_rreq(netdissect_options *ndo, const u_char *dat, u_int length)
304 if (length < sizeof(*ap))
307 "\tdst %s seq %u src %s seq %u", length,
319 i = length - sizeof(*ap);
329 aodv_v6_rrep(netdissect_options *ndo, const u_char *dat, u_int length)
335 if (length < sizeof(*ap))
338 "\tdst %s dseq %u src %s %u ms", length,
347 i = length - sizeof(*ap);
357 aodv_v6_rerr(netdissect_options *ndo, const u_char *dat, u_int length)
364 if (length < sizeof(*ap))
368 GET_U_1(ap->rerr_dc), length);
370 i = length - sizeof(*ap);
387 aodv_v6_draft_01_rreq(netdissect_options *ndo, const u_char *dat, u_int length)
393 if (length < sizeof(*ap))
396 "\tdst %s seq %u src %s seq %u", length,
408 i = length - sizeof(*ap);
418 aodv_v6_draft_01_rrep(netdissect_options *ndo, const u_char *dat, u_int length)
424 if (length < sizeof(*ap))
427 "\tdst %s dseq %u src %s %u ms", length,
436 i = length - sizeof(*ap);
446 aodv_v6_draft_01_rerr(netdissect_options *ndo, const u_char *dat, u_int length)
453 if (length < sizeof(*ap))
457 GET_U_1(ap->rerr_dc), length);
459 i = length - sizeof(*ap);
477 const u_char *dat, u_int length, int is_ip6)
493 aodv_v6_rreq(ndo, dat, length);
495 aodv_rreq(ndo, dat, length);
500 aodv_v6_rrep(ndo, dat, length);
502 aodv_rrep(ndo, dat, length);
507 aodv_v6_rerr(ndo, dat, length);
509 aodv_rerr(ndo, dat, length);
513 ND_PRINT(" rrep-ack %u", length);
517 aodv_v6_draft_01_rreq(ndo, dat, length);
521 aodv_v6_draft_01_rrep(ndo, dat, length);
525 aodv_v6_draft_01_rerr(ndo, dat, length);
529 ND_PRINT(" rrep-ack %u", length);
533 ND_PRINT(" type %u %u", msg_type, length);