• Home
  • Raw
  • Download

Lines Matching refs:ndo

48 babel_print(netdissect_options *ndo,  in babel_print()  argument
51 ND_PRINT((ndo, "babel")); in babel_print()
56 ND_PRINT((ndo, " malformed header")); in babel_print()
59 ND_PRINT((ndo, " %d", cp[1])); in babel_print()
64 babel_print_v2(ndo, cp, length); in babel_print()
67 ND_PRINT((ndo, " unknown version")); in babel_print()
74 ND_PRINT((ndo, " %s", tstr)); in babel_print()
120 format_prefix(netdissect_options *ndo, const u_char *prefix, unsigned char plen) in format_prefix() argument
124 snprintf(buf, 50, "%s/%u", ipaddr_string(ndo, prefix + 12), plen - 96); in format_prefix()
127 snprintf(buf, 50, "%s/%u", ip6addr_string(ndo, prefix), plen); in format_prefix()
136 format_address(netdissect_options *ndo, const u_char *prefix) in format_address() argument
139 return ipaddr_string(ndo, prefix + 12); in format_address()
142 return ip6addr_string(ndo, prefix); in format_address()
273 subtlvs_print(netdissect_options *ndo, in subtlvs_print() argument
283 ND_PRINT((ndo, " sub-pad1")); in subtlvs_print()
294 ND_PRINT((ndo, " sub-padn")); in subtlvs_print()
298 ND_PRINT((ndo, " sub-diversity")); in subtlvs_print()
300 ND_PRINT((ndo, " empty")); in subtlvs_print()
305 ND_PRINT((ndo, "%s%s", sep, tok2str(diversity_str, "%u", *cp++))); in subtlvs_print()
309 ND_PRINT((ndo, " (bogus)")); in subtlvs_print()
312 ND_PRINT((ndo, " sub-timestamp")); in subtlvs_print()
317 ND_PRINT((ndo, " %s", format_timestamp(t1))); in subtlvs_print()
322 ND_PRINT((ndo, " %s", format_timestamp(t1))); in subtlvs_print()
324 ND_PRINT((ndo, "|%s", format_timestamp(t2))); in subtlvs_print()
326 ND_PRINT((ndo, " (bogus)")); in subtlvs_print()
330 ND_PRINT((ndo, " sub-unknown-0x%02x", subtype)); in subtlvs_print()
337 ND_PRINT((ndo, " (corrupt)")); in subtlvs_print()
344 babel_print_v2(netdissect_options *ndo, in babel_print_v2() argument
357 ND_PRINT((ndo, " (%u)", bodylen)); in babel_print_v2()
369 ND_PRINT((ndo, ndo->ndo_vflag ? "\n\tPad 1" : " pad1")); in babel_print_v2()
383 if (!ndo->ndo_vflag) in babel_print_v2()
384 ND_PRINT((ndo, " padN")); in babel_print_v2()
386 ND_PRINT((ndo, "\n\tPad %d", len + 2)); in babel_print_v2()
392 if (!ndo->ndo_vflag) in babel_print_v2()
393 ND_PRINT((ndo, " ack-req")); in babel_print_v2()
395 ND_PRINT((ndo, "\n\tAcknowledgment Request ")); in babel_print_v2()
399 ND_PRINT((ndo, "%04x %s", nonce, format_interval(interval))); in babel_print_v2()
406 if (!ndo->ndo_vflag) in babel_print_v2()
407 ND_PRINT((ndo, " ack")); in babel_print_v2()
409 ND_PRINT((ndo, "\n\tAcknowledgment ")); in babel_print_v2()
412 ND_PRINT((ndo, "%04x", nonce)); in babel_print_v2()
419 if (!ndo->ndo_vflag) in babel_print_v2()
420 ND_PRINT((ndo, " hello")); in babel_print_v2()
422 ND_PRINT((ndo, "\n\tHello ")); in babel_print_v2()
426 ND_PRINT((ndo, "seqno %u interval %s", seqno, format_interval(interval))); in babel_print_v2()
429 subtlvs_print(ndo, message + 8, message + 2 + len, type); in babel_print_v2()
436 if (!ndo->ndo_vflag) in babel_print_v2()
437 ND_PRINT((ndo, " ihu")); in babel_print_v2()
441 ND_PRINT((ndo, "\n\tIHU ")); in babel_print_v2()
446 if(rc < 0) { ND_PRINT((ndo, "%s", tstr)); break; } in babel_print_v2()
447 ND_PRINT((ndo, "%s txcost %u interval %s", in babel_print_v2()
448 format_address(ndo, address), txcost, format_interval(interval))); in babel_print_v2()
451 subtlvs_print(ndo, message + 8 + rc, message + 2 + len, in babel_print_v2()
458 if (!ndo->ndo_vflag) in babel_print_v2()
459 ND_PRINT((ndo, " router-id")); in babel_print_v2()
461 ND_PRINT((ndo, "\n\tRouter Id")); in babel_print_v2()
463 ND_PRINT((ndo, " %s", format_id(message + 4))); in babel_print_v2()
469 if (!ndo->ndo_vflag) in babel_print_v2()
470 ND_PRINT((ndo, " nh")); in babel_print_v2()
474 ND_PRINT((ndo, "\n\tNext Hop")); in babel_print_v2()
478 ND_PRINT((ndo, " %s", format_address(ndo, nh))); in babel_print_v2()
484 if (!ndo->ndo_vflag) { in babel_print_v2()
485 ND_PRINT((ndo, " update")); in babel_print_v2()
487 ND_PRINT((ndo, "/truncated")); in babel_print_v2()
489 ND_PRINT((ndo, "%s%s%s", in babel_print_v2()
498 ND_PRINT((ndo, "\n\tUpdate")); in babel_print_v2()
509 ND_PRINT((ndo, "%s%s%s %s metric %u seqno %u interval %s", in babel_print_v2()
513 format_prefix(ndo, prefix, plen), in babel_print_v2()
523 subtlvs_print(ndo, message + 12 + rc, message + 2 + len, type); in babel_print_v2()
529 if (!ndo->ndo_vflag) in babel_print_v2()
530 ND_PRINT((ndo, " request")); in babel_print_v2()
534 ND_PRINT((ndo, "\n\tRequest ")); in babel_print_v2()
540 ND_PRINT((ndo, "for %s", in babel_print_v2()
541 message[2] == 0 ? "any" : format_prefix(ndo, prefix, plen))); in babel_print_v2()
547 if (!ndo->ndo_vflag) in babel_print_v2()
548 ND_PRINT((ndo, " mh-request")); in babel_print_v2()
553 ND_PRINT((ndo, "\n\tMH-Request ")); in babel_print_v2()
560 ND_PRINT((ndo, "(%u hops) for %s seqno %u id %s", in babel_print_v2()
561 message[6], format_prefix(ndo, prefix, plen), in babel_print_v2()
567 if (!ndo->ndo_vflag) in babel_print_v2()
568 ND_PRINT((ndo, " tspc")); in babel_print_v2()
570 ND_PRINT((ndo, "\n\tTS/PC ")); in babel_print_v2()
572 ND_PRINT((ndo, "timestamp %u packetcounter %u", EXTRACT_32BITS (message + 4), in babel_print_v2()
577 if (!ndo->ndo_vflag) in babel_print_v2()
578 ND_PRINT((ndo, " hmac")); in babel_print_v2()
581 ND_PRINT((ndo, "\n\tHMAC ")); in babel_print_v2()
583 ND_PRINT((ndo, "key-id %u digest-%u ", EXTRACT_16BITS(message + 2), len - 2)); in babel_print_v2()
585 ND_PRINT((ndo, "%02X", message[4 + j])); in babel_print_v2()
590 if (!ndo->ndo_vflag) in babel_print_v2()
591 ND_PRINT((ndo, " unknown")); in babel_print_v2()
593 ND_PRINT((ndo, "\n\tUnknown message type %d", type)); in babel_print_v2()
600 ND_PRINT((ndo, " %s", tstr)); in babel_print_v2()
604 ND_PRINT((ndo, " (corrupt)")); in babel_print_v2()