Lines Matching refs:optlen
342 size_t optlen; in dhcp6opt_print() local
357 optlen = EXTRACT_16BITS(&dh6o->dh6opt_len); in dhcp6opt_print()
358 if (ep < cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
365 if (optlen < 2) { in dhcp6opt_print()
373 if (optlen >= 2 + 6) { in dhcp6opt_print()
377 for (i = 8; i < optlen; i++) in dhcp6opt_print()
387 if (optlen >= 2 + 8) { in dhcp6opt_print()
399 if (optlen >= 2 + 2) { in dhcp6opt_print()
402 for (i = 4; i < optlen; i++) in dhcp6opt_print()
417 if (optlen < 24) { in dhcp6opt_print()
427 if (optlen > 24) { in dhcp6opt_print()
429 dhcp6opt_print(tp + 24, tp + optlen); in dhcp6opt_print()
435 if (optlen % 2) { in dhcp6opt_print()
440 for (i = 0; i < optlen; i += 2) { in dhcp6opt_print()
447 if (optlen != 1) { in dhcp6opt_print()
455 if (optlen != 2) { in dhcp6opt_print()
465 dhcp6_print(tp, optlen); in dhcp6opt_print()
469 if (optlen < 11) { in dhcp6opt_print()
511 authinfolen = optlen - 11; in dhcp6opt_print()
570 for (i = 0; i < optlen && i < 10; i++) in dhcp6opt_print()
599 if (optlen % 16) { in dhcp6opt_print()
604 for (i = 0; i < optlen; i += 16) in dhcp6opt_print()
611 while (tp < cp + sizeof(*dh6o) + optlen) { in dhcp6opt_print()
613 if ((tp = ns_nprint(tp, cp + sizeof(*dh6o) + optlen)) == NULL) in dhcp6opt_print()
619 if (optlen < 2) { in dhcp6opt_print()
628 if (optlen < 12) { in dhcp6opt_print()
637 if (optlen > 12) { in dhcp6opt_print()
639 dhcp6opt_print(tp + 12, tp + optlen); in dhcp6opt_print()
644 if (optlen < 4) { in dhcp6opt_print()
650 if (optlen > 4) { in dhcp6opt_print()
652 dhcp6opt_print(tp + 4, tp + optlen); in dhcp6opt_print()
657 if (optlen < 25) { in dhcp6opt_print()
666 if (optlen > 25) { in dhcp6opt_print()
668 dhcp6opt_print(tp + 25, tp + optlen); in dhcp6opt_print()
674 if (optlen != 4) { in dhcp6opt_print()
682 if (optlen < 4) { in dhcp6opt_print()
691 for (i = 4; i < optlen && i < 14; i++) in dhcp6opt_print()
696 if (optlen < 17) { in dhcp6opt_print()
713 if (optlen > 17) { in dhcp6opt_print()
715 dhcp6opt_print(tp + 17, tp + optlen); in dhcp6opt_print()
721 if (optlen > 0) { in dhcp6opt_print()
723 dhcp6opt_print(tp, tp + optlen); in dhcp6opt_print()
728 if (optlen < 16) { in dhcp6opt_print()
737 for (i = 16; i < optlen && i < 26; i++) in dhcp6opt_print()
742 if (optlen < 4) { in dhcp6opt_print()
747 while (tp < cp + sizeof(*dh6o) + optlen - 4) { in dhcp6opt_print()
752 if (tp + subopt_len > cp + sizeof(*dh6o) + optlen) in dhcp6opt_print()
778 if (optlen < 3) { in dhcp6opt_print()
783 remain_len = optlen; in dhcp6opt_print()
805 cp += sizeof(*dh6o) + optlen; in dhcp6opt_print()