Lines Matching +full:dc +full:- +full:id
16 * 4. Neither the name of Bruce M. Simpson nor the names of co-
33 /* \summary: Ad hoc On-Demand Distance Vector (AODV) Routing printer */
37 #include "netdissect-stdinc.h"
51 nd_uint32_t rreq_id; /* request ID */
62 nd_uint32_t rreq_id; /* request ID */
73 nd_uint32_t rreq_id; /* request ID */
182 switch (GET_U_1(ep->type)) { in aodv_extension()
188 if (GET_U_1(ep->length) < 4) { in aodv_extension()
189 ND_PRINT("\n\text HELLO - bad length %u", in aodv_extension()
190 GET_U_1(ep->length)); in aodv_extension()
194 GET_BE_U_4(ah->interval)); in aodv_extension()
198 ND_PRINT("\n\text %u %u", GET_U_1(ep->type), in aodv_extension()
199 GET_U_1(ep->length)); in aodv_extension()
217 ND_PRINT(" rreq %u %s%s%s%s%shops %u id 0x%08x\n" in aodv_rreq()
219 GET_U_1(ap->rreq_type) & RREQ_JOIN ? "[J]" : "", in aodv_rreq()
220 GET_U_1(ap->rreq_type) & RREQ_REPAIR ? "[R]" : "", in aodv_rreq()
221 GET_U_1(ap->rreq_type) & RREQ_GRAT ? "[G]" : "", in aodv_rreq()
222 GET_U_1(ap->rreq_type) & RREQ_DEST ? "[D]" : "", in aodv_rreq()
223 GET_U_1(ap->rreq_type) & RREQ_UNKNOWN ? "[U] " : " ", in aodv_rreq()
224 GET_U_1(ap->rreq_hops), in aodv_rreq()
225 GET_BE_U_4(ap->rreq_id), in aodv_rreq()
226 GET_IPADDR_STRING(ap->rreq_da), in aodv_rreq()
227 GET_BE_U_4(ap->rreq_ds), in aodv_rreq()
228 GET_IPADDR_STRING(ap->rreq_oa), in aodv_rreq()
229 GET_BE_U_4(ap->rreq_os)); in aodv_rreq()
230 i = length - sizeof(*ap); in aodv_rreq()
250 GET_U_1(ap->rrep_type) & RREP_REPAIR ? "[R]" : "", in aodv_rrep()
251 GET_U_1(ap->rrep_type) & RREP_ACK ? "[A] " : " ", in aodv_rrep()
252 GET_U_1(ap->rrep_ps) & RREP_PREFIX_MASK, in aodv_rrep()
253 GET_U_1(ap->rrep_hops), in aodv_rrep()
254 GET_IPADDR_STRING(ap->rrep_da), in aodv_rrep()
255 GET_BE_U_4(ap->rrep_ds), in aodv_rrep()
256 GET_IPADDR_STRING(ap->rrep_oa), in aodv_rrep()
257 GET_BE_U_4(ap->rrep_life)); in aodv_rrep()
258 i = length - sizeof(*ap); in aodv_rrep()
270 u_int i, dc; in aodv_rerr() local
278 GET_U_1(ap->rerr_flags) & RERR_NODELETE ? "[D]" : "", in aodv_rerr()
279 GET_U_1(ap->rerr_dc), length); in aodv_rerr()
281 i = length - sizeof(*ap); in aodv_rerr()
282 for (dc = GET_U_1(ap->rerr_dc); dc != 0; dc--) { in aodv_rerr()
286 ND_PRINT(" {%s}(%u)", GET_IPADDR_STRING(dp->u_da), in aodv_rerr()
287 GET_BE_U_4(dp->u_ds)); in aodv_rerr()
289 i -= sizeof(*dp); in aodv_rerr()
306 ND_PRINT(" v6 rreq %u %s%s%s%s%shops %u id 0x%08x\n" in aodv_v6_rreq()
308 GET_U_1(ap->rreq_type) & RREQ_JOIN ? "[J]" : "", in aodv_v6_rreq()
309 GET_U_1(ap->rreq_type) & RREQ_REPAIR ? "[R]" : "", in aodv_v6_rreq()
310 GET_U_1(ap->rreq_type) & RREQ_GRAT ? "[G]" : "", in aodv_v6_rreq()
311 GET_U_1(ap->rreq_type) & RREQ_DEST ? "[D]" : "", in aodv_v6_rreq()
312 GET_U_1(ap->rreq_type) & RREQ_UNKNOWN ? "[U] " : " ", in aodv_v6_rreq()
313 GET_U_1(ap->rreq_hops), in aodv_v6_rreq()
314 GET_BE_U_4(ap->rreq_id), in aodv_v6_rreq()
315 GET_IP6ADDR_STRING(ap->rreq_da), in aodv_v6_rreq()
316 GET_BE_U_4(ap->rreq_ds), in aodv_v6_rreq()
317 GET_IP6ADDR_STRING(ap->rreq_oa), in aodv_v6_rreq()
318 GET_BE_U_4(ap->rreq_os)); in aodv_v6_rreq()
319 i = length - sizeof(*ap); in aodv_v6_rreq()
339 GET_U_1(ap->rrep_type) & RREP_REPAIR ? "[R]" : "", in aodv_v6_rrep()
340 GET_U_1(ap->rrep_type) & RREP_ACK ? "[A] " : " ", in aodv_v6_rrep()
341 GET_U_1(ap->rrep_ps) & RREP_PREFIX_MASK, in aodv_v6_rrep()
342 GET_U_1(ap->rrep_hops), in aodv_v6_rrep()
343 GET_IP6ADDR_STRING(ap->rrep_da), in aodv_v6_rrep()
344 GET_BE_U_4(ap->rrep_ds), in aodv_v6_rrep()
345 GET_IP6ADDR_STRING(ap->rrep_oa), in aodv_v6_rrep()
346 GET_BE_U_4(ap->rrep_life)); in aodv_v6_rrep()
347 i = length - sizeof(*ap); in aodv_v6_rrep()
359 u_int i, dc; in aodv_v6_rerr() local
367 GET_U_1(ap->rerr_flags) & RERR_NODELETE ? "[D]" : "", in aodv_v6_rerr()
368 GET_U_1(ap->rerr_dc), length); in aodv_v6_rerr()
370 i = length - sizeof(*ap); in aodv_v6_rerr()
371 for (dc = GET_U_1(ap->rerr_dc); dc != 0; dc--) { in aodv_v6_rerr()
375 ND_PRINT(" {%s}(%u)", GET_IP6ADDR_STRING(dp6->u_da), in aodv_v6_rerr()
376 GET_BE_U_4(dp6->u_ds)); in aodv_v6_rerr()
378 i -= sizeof(*dp6); in aodv_v6_rerr()
395 ND_PRINT(" rreq %u %s%s%s%s%shops %u id 0x%08x\n" in aodv_v6_draft_01_rreq()
397 GET_U_1(ap->rreq_type) & RREQ_JOIN ? "[J]" : "", in aodv_v6_draft_01_rreq()
398 GET_U_1(ap->rreq_type) & RREQ_REPAIR ? "[R]" : "", in aodv_v6_draft_01_rreq()
399 GET_U_1(ap->rreq_type) & RREQ_GRAT ? "[G]" : "", in aodv_v6_draft_01_rreq()
400 GET_U_1(ap->rreq_type) & RREQ_DEST ? "[D]" : "", in aodv_v6_draft_01_rreq()
401 GET_U_1(ap->rreq_type) & RREQ_UNKNOWN ? "[U] " : " ", in aodv_v6_draft_01_rreq()
402 GET_U_1(ap->rreq_hops), in aodv_v6_draft_01_rreq()
403 GET_BE_U_4(ap->rreq_id), in aodv_v6_draft_01_rreq()
404 GET_IP6ADDR_STRING(ap->rreq_da), in aodv_v6_draft_01_rreq()
405 GET_BE_U_4(ap->rreq_ds), in aodv_v6_draft_01_rreq()
406 GET_IP6ADDR_STRING(ap->rreq_oa), in aodv_v6_draft_01_rreq()
407 GET_BE_U_4(ap->rreq_os)); in aodv_v6_draft_01_rreq()
408 i = length - sizeof(*ap); in aodv_v6_draft_01_rreq()
428 GET_U_1(ap->rrep_type) & RREP_REPAIR ? "[R]" : "", in aodv_v6_draft_01_rrep()
429 GET_U_1(ap->rrep_type) & RREP_ACK ? "[A] " : " ", in aodv_v6_draft_01_rrep()
430 GET_U_1(ap->rrep_ps) & RREP_PREFIX_MASK, in aodv_v6_draft_01_rrep()
431 GET_U_1(ap->rrep_hops), in aodv_v6_draft_01_rrep()
432 GET_IP6ADDR_STRING(ap->rrep_da), in aodv_v6_draft_01_rrep()
433 GET_BE_U_4(ap->rrep_ds), in aodv_v6_draft_01_rrep()
434 GET_IP6ADDR_STRING(ap->rrep_oa), in aodv_v6_draft_01_rrep()
435 GET_BE_U_4(ap->rrep_life)); in aodv_v6_draft_01_rrep()
436 i = length - sizeof(*ap); in aodv_v6_draft_01_rrep()
448 u_int i, dc; in aodv_v6_draft_01_rerr() local
456 GET_U_1(ap->rerr_flags) & RERR_NODELETE ? "[D]" : "", in aodv_v6_draft_01_rerr()
457 GET_U_1(ap->rerr_dc), length); in aodv_v6_draft_01_rerr()
459 i = length - sizeof(*ap); in aodv_v6_draft_01_rerr()
460 for (dc = GET_U_1(ap->rerr_dc); dc != 0; dc--) { in aodv_v6_draft_01_rerr()
464 ND_PRINT(" {%s}(%u)", GET_IP6ADDR_STRING(dp6->u_da), in aodv_v6_draft_01_rerr()
465 GET_BE_U_4(dp6->u_ds)); in aodv_v6_draft_01_rerr()
467 i -= sizeof(*dp6); in aodv_v6_draft_01_rerr()
481 ndo->ndo_protocol = "aodv"; in aodv_print()
513 ND_PRINT(" rrep-ack %u", length); in aodv_print()
529 ND_PRINT(" rrep-ack %u", length); in aodv_print()