Lines Matching refs:bodylen
412 uint16_t type, bodylen; in hncp_print_rec() local
430 bodylen = EXTRACT_16BITS(tlv + 2); in hncp_print_rec()
432 ND_TCHECK2(*value, bodylen); in hncp_print_rec()
433 if (i + bodylen + 4 > length) in hncp_print_rec()
473 ND_PRINT((ndo," (%u)", bodylen + 4 )); in hncp_print_rec()
478 if (bodylen != 0) in hncp_print_rec()
485 if (bodylen != 4) { in hncp_print_rec()
497 if (bodylen != 8) { in hncp_print_rec()
512 if (bodylen != 8) { in hncp_print_rec()
525 if (bodylen < 20) { in hncp_print_rec()
539 hncp_print_rec(ndo, value+20, bodylen-20, indent+1); in hncp_print_rec()
546 if (bodylen != 12) { in hncp_print_rec()
564 if (bodylen < 8) { in hncp_print_rec()
578 if (bodylen <= 36) { in hncp_print_rec()
585 safeputs(ndo, value + 36, bodylen - 36); in hncp_print_rec()
592 if (bodylen < 5) { in hncp_print_rec()
604 safeputs(ndo, value + 4, bodylen - 4); in hncp_print_rec()
610 hncp_print_rec(ndo, value, bodylen, indent+1); in hncp_print_rec()
616 if (bodylen < 9 || bodylen < 9 + (value[8] + 7) / 8) { in hncp_print_rec()
624 l = print_prefix(ndo, value + 8, bodylen - 8); in hncp_print_rec()
644 if (bodylen >= l) in hncp_print_rec()
645 hncp_print_rec(ndo, value + l, bodylen - l, indent+1); in hncp_print_rec()
652 if (bodylen < 1) { in hncp_print_rec()
659 if (bodylen != 1) { in hncp_print_rec()
666 l = print_prefix(ndo, value, bodylen); in hncp_print_rec()
686 print_dns_label(ndo, value+1, bodylen-1, 1); in hncp_print_rec()
689 safeputs(ndo, value + 1, bodylen - 1); in hncp_print_rec()
691 if (bodylen != 1) { in hncp_print_rec()
703 if (bodylen == 0) { in hncp_print_rec()
707 if (dhcpv4_print(ndo, value, bodylen, indent+1) != 0) in hncp_print_rec()
713 if (bodylen == 0) { in hncp_print_rec()
717 if (dhcpv6_print(ndo, value, bodylen, indent+1) != 0) { in hncp_print_rec()
727 if (bodylen < 6 || bodylen < 6 + (value[5] + 7) / 8) { in hncp_print_rec()
737 if ((l = print_prefix(ndo, value + 5, bodylen - 5)) < 0) { in hncp_print_rec()
744 if (bodylen >= l) in hncp_print_rec()
745 hncp_print_rec(ndo, value + l, bodylen - l, indent+1); in hncp_print_rec()
752 if (bodylen < 20) { in hncp_print_rec()
763 hncp_print_rec(ndo, value + 20, bodylen - 20, indent+1); in hncp_print_rec()
770 if (bodylen < 17) { in hncp_print_rec()
781 len = print_dns_label(ndo, value+17, bodylen-17, 1); in hncp_print_rec()
788 if (bodylen >= len) in hncp_print_rec()
789 hncp_print_rec(ndo, value+len, bodylen-len, indent+1); in hncp_print_rec()
794 if (bodylen == 0) { in hncp_print_rec()
799 print_dns_label(ndo, value, bodylen, 1); in hncp_print_rec()
805 if (bodylen < 17) { in hncp_print_rec()
810 if (bodylen < 17 + l) { in hncp_print_rec()
826 if (bodylen >= l) in hncp_print_rec()
827 hncp_print_rec(ndo, value + l, bodylen - l, indent+1); in hncp_print_rec()
832 if (bodylen < 32) { in hncp_print_rec()
837 hncp_print_rec(ndo, value + 32, bodylen - 32, indent+1); in hncp_print_rec()
850 i += 4 + bodylen + (-bodylen & 3); in hncp_print_rec()