• Home
  • Raw
  • Download

Lines Matching refs:tp

280 	const u_char *tp;  in dhcp6opt_print()  local
311 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
312 switch (EXTRACT_16BITS(tp)) { in dhcp6opt_print()
316 EXTRACT_16BITS(&tp[2]), in dhcp6opt_print()
317 EXTRACT_32BITS(&tp[4]))); in dhcp6opt_print()
319 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
331 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
342 EXTRACT_16BITS(&tp[2]))); in dhcp6opt_print()
344 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
353 ND_PRINT((ndo, " type %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print()
363 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
364 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
366 EXTRACT_32BITS(&tp[16]), in dhcp6opt_print()
367 EXTRACT_32BITS(&tp[20]))); in dhcp6opt_print()
370 dhcp6opt_print(ndo, tp + 24, tp + optlen); in dhcp6opt_print()
380 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
383 tok2str(dh6opt_str, "opt_%u", EXTRACT_16BITS(&tp[i])))); in dhcp6opt_print()
392 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
393 ND_PRINT((ndo, " %d)", *tp)); in dhcp6opt_print()
400 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
401 ND_PRINT((ndo, " %d)", EXTRACT_16BITS(tp))); in dhcp6opt_print()
405 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
406 dhcp6_print(ndo, tp, optlen); in dhcp6opt_print()
414 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
415 auth_proto = *tp; in dhcp6opt_print()
427 tp++; in dhcp6opt_print()
428 switch (*tp) { in dhcp6opt_print()
434 ND_PRINT((ndo, ", alg: %d", *tp)); in dhcp6opt_print()
437 tp++; in dhcp6opt_print()
438 switch (*tp) { in dhcp6opt_print()
443 ND_PRINT((ndo, ", RDM: %d", *tp)); in dhcp6opt_print()
446 tp++; in dhcp6opt_print()
448 for (i = 0; i < 4; i++, tp += 2) in dhcp6opt_print()
449 ND_PRINT((ndo, " %04x", EXTRACT_16BITS(tp))); in dhcp6opt_print()
465 for (i = 0; i < authrealmlen; i++, tp++) in dhcp6opt_print()
466 ND_PRINT((ndo, "%02x", *tp)); in dhcp6opt_print()
467 ND_PRINT((ndo, ", key ID: %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
468 tp += 4; in dhcp6opt_print()
470 for (i = 0; i < 4; i++, tp+= 4) in dhcp6opt_print()
471 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
478 switch (*tp++) { in dhcp6opt_print()
490 for (i = 0; i < 4; i++, tp+= 4) in dhcp6opt_print()
491 ND_PRINT((ndo, " %08x", EXTRACT_32BITS(tp))); in dhcp6opt_print()
509 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
512 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
516 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
517 switch (*tp) { in dhcp6opt_print()
525 ND_PRINT((ndo, " for ?\?\?(%02x))", *tp)); in dhcp6opt_print()
544 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
546 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[i]))); in dhcp6opt_print()
551 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
552 while (tp < cp + sizeof(*dh6o) + optlen) { in dhcp6opt_print()
554 if ((tp = ns_nprint(ndo, tp, cp + sizeof(*dh6o) + optlen)) == NULL) in dhcp6opt_print()
564 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
565 ND_PRINT((ndo, " %s)", dhcp6stcode(EXTRACT_16BITS(&tp[0])))); in dhcp6opt_print()
573 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
575 EXTRACT_32BITS(&tp[0]), in dhcp6opt_print()
576 EXTRACT_32BITS(&tp[4]), in dhcp6opt_print()
577 EXTRACT_32BITS(&tp[8]))); in dhcp6opt_print()
580 dhcp6opt_print(ndo, tp + 12, tp + optlen); in dhcp6opt_print()
589 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
590 ND_PRINT((ndo, " IAID:%u", EXTRACT_32BITS(tp))); in dhcp6opt_print()
593 dhcp6opt_print(ndo, tp + 4, tp + optlen); in dhcp6opt_print()
602 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
603 ND_PRINT((ndo, " %s/%d", ip6addr_string(ndo, &tp[9]), tp[8])); in dhcp6opt_print()
605 EXTRACT_32BITS(&tp[0]), in dhcp6opt_print()
606 EXTRACT_32BITS(&tp[4]))); in dhcp6opt_print()
609 dhcp6opt_print(ndo, tp + 25, tp + optlen); in dhcp6opt_print()
619 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
620 ND_PRINT((ndo, " %d)", EXTRACT_32BITS(tp))); in dhcp6opt_print()
627 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
628 ND_PRINT((ndo, " %d ", EXTRACT_32BITS(tp))); in dhcp6opt_print()
633 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
641 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
642 switch (*tp) { in dhcp6opt_print()
650 ND_PRINT((ndo, " type_%d", (int)*tp)); in dhcp6opt_print()
653 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[1]))); in dhcp6opt_print()
656 dhcp6opt_print(ndo, tp + 17, tp + optlen); in dhcp6opt_print()
661 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
664 dhcp6opt_print(ndo, tp, tp + optlen); in dhcp6opt_print()
673 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
674 ND_PRINT((ndo, " %s ", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
679 ND_PRINT((ndo, "%02x", tp[i])); in dhcp6opt_print()
687 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
688 while (tp < cp + sizeof(*dh6o) + optlen - 4) { in dhcp6opt_print()
689 subopt_code = EXTRACT_16BITS(tp); in dhcp6opt_print()
690 tp += 2; in dhcp6opt_print()
691 subopt_len = EXTRACT_16BITS(tp); in dhcp6opt_print()
692 tp += 2; in dhcp6opt_print()
693 if (tp + subopt_len > cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
703 ND_PRINT((ndo, " %s", ip6addr_string(ndo, &tp[0]))); in dhcp6opt_print()
707 if (ns_nprint(ndo, tp, tp + subopt_len) == NULL) in dhcp6opt_print()
714 tp += subopt_len; in dhcp6opt_print()
723 tp = (u_char *)(dh6o + 1); in dhcp6opt_print()
727 while (remain_len && *tp) { in dhcp6opt_print()
728 label_len = *tp++; in dhcp6opt_print()
730 ND_PRINT((ndo, "%.*s", label_len, tp)); in dhcp6opt_print()
731 tp += label_len; in dhcp6opt_print()
733 if(*tp) ND_PRINT((ndo, ".")); in dhcp6opt_print()