Lines Matching refs:tp
284 const u_char *tp; in dhcp6opt_print() local
316 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
317 switch (EXTRACT_16BITS(tp)) { in dhcp6opt_print()
321 EXTRACT_16BITS(&tp[2]), in dhcp6opt_print()
322 EXTRACT_32BITS(&tp[4]))); in dhcp6opt_print()
324 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
336 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
347 EXTRACT_16BITS(&tp[2]))); in dhcp6opt_print()
349 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
358 ND_PRINT((ndo, " type %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print()
368 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
369 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
371 EXTRACT_32BITS(&tp[16]), in dhcp6opt_print()
372 EXTRACT_32BITS(&tp[20]))); in dhcp6opt_print()
375 dhcp6opt_print(ndo, tp + 24, tp + optlen); in dhcp6opt_print()
385 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
388 tok2str(dh6opt_str, "opt_%u", EXTRACT_16BITS(&tp[i])))); in dhcp6opt_print()
397 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
398 ND_PRINT((ndo, " %d)", *tp)); in dhcp6opt_print()
405 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
406 ND_PRINT((ndo, " %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print()
410 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
411 dhcp6_print(ndo, tp, optlen); in dhcp6opt_print()
419 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
420 auth_proto = *tp; in dhcp6opt_print()
432 tp++; in dhcp6opt_print()
433 switch (*tp) { in dhcp6opt_print()
439 ND_PRINT((ndo, ", alg: %d", *tp)); in dhcp6opt_print()
442 tp++; in dhcp6opt_print()
443 switch (*tp) { in dhcp6opt_print()
448 ND_PRINT((ndo, ", RDM: %d", *tp)); in dhcp6opt_print()
451 tp++; in dhcp6opt_print()
453 for (i = 0; i < 4; i++, tp += 2) in dhcp6opt_print()
454 ND_PRINT((ndo, " %04x", EXTRACT_16BITS(tp))); in dhcp6opt_print()
470 for (i = 0; i < authrealmlen; i++, tp++) in dhcp6opt_print()
471 ND_PRINT((ndo, "%02x", *tp)); in dhcp6opt_print()
472 ND_PRINT((ndo, ", key ID: %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
473 tp += 4; in dhcp6opt_print()
475 for (i = 0; i < 4; i++, tp+= 4) in dhcp6opt_print()
476 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
483 switch (*tp++) { in dhcp6opt_print()
495 for (i = 0; i < 4; i++, tp+= 4) in dhcp6opt_print()
496 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
514 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
517 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
525 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
526 switch (*tp) { in dhcp6opt_print()
534 ND_PRINT((ndo, " for ?\?\?(%02x))", *tp)); in dhcp6opt_print()
553 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
555 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[i]))); in dhcp6opt_print()
560 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
561 while (tp < cp + sizeof(*dh6o) + optlen) { in dhcp6opt_print()
563 if ((tp = ns_nprint(ndo, tp, cp + sizeof(*dh6o) + optlen)) == NULL) in dhcp6opt_print()
573 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
574 ND_PRINT((ndo, " %s)", dhcp6stcode(EXTRACT_16BITS(&tp[0])))); in dhcp6opt_print()
582 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
584 EXTRACT_32BITS(&tp[0]), in dhcp6opt_print()
585 EXTRACT_32BITS(&tp[4]), in dhcp6opt_print()
586 EXTRACT_32BITS(&tp[8]))); in dhcp6opt_print()
589 dhcp6opt_print(ndo, tp + 12, tp + optlen); in dhcp6opt_print()
598 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
599 ND_PRINT((ndo, " IAID:%u", EXTRACT_32BITS(tp))); in dhcp6opt_print()
602 dhcp6opt_print(ndo, tp + 4, tp + optlen); in dhcp6opt_print()
611 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
612 ND_PRINT((ndo, " %s/%d", ip6addr_string(ndo, &tp[9]), tp[8])); in dhcp6opt_print()
614 EXTRACT_32BITS(&tp[0]), in dhcp6opt_print()
615 EXTRACT_32BITS(&tp[4]))); in dhcp6opt_print()
618 dhcp6opt_print(ndo, tp + 25, tp + optlen); in dhcp6opt_print()
628 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
629 ND_PRINT((ndo, " %d)", EXTRACT_32BITS(tp))); in dhcp6opt_print()
636 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
637 ND_PRINT((ndo, " %d ", EXTRACT_32BITS(tp))); in dhcp6opt_print()
642 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
650 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
651 switch (*tp) { in dhcp6opt_print()
659 ND_PRINT((ndo, " type_%d", (int)*tp)); in dhcp6opt_print()
662 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[1]))); in dhcp6opt_print()
665 dhcp6opt_print(ndo, tp + 17, tp + optlen); in dhcp6opt_print()
670 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
673 dhcp6opt_print(ndo, tp, tp + optlen); in dhcp6opt_print()
682 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
683 ND_PRINT((ndo, " %s ", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
688 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
696 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
697 while (tp < cp + sizeof(*dh6o) + optlen - 4) { in dhcp6opt_print()
698 subopt_code = EXTRACT_16BITS(tp); in dhcp6opt_print()
699 tp += 2; in dhcp6opt_print()
700 subopt_len = EXTRACT_16BITS(tp); in dhcp6opt_print()
701 tp += 2; in dhcp6opt_print()
702 if (tp + subopt_len > cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
712 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
716 if (ns_nprint(ndo, tp, tp + subopt_len) == NULL) in dhcp6opt_print()
723 tp += subopt_len; in dhcp6opt_print()
732 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
736 while (remain_len && *tp) { in dhcp6opt_print()
737 label_len = *tp++; in dhcp6opt_print()
739 (void)fn_printn(ndo, tp, label_len, NULL); in dhcp6opt_print()
740 tp += label_len; in dhcp6opt_print()
742 if(*tp) ND_PRINT((ndo, ".")); in dhcp6opt_print()
757 tp = (const u_char *)(dh6o + 1); in dhcp6opt_print()
759 (void)fn_printn(ndo, tp, (u_int)optlen, NULL); in dhcp6opt_print()