Lines Matching refs:bodylen
414 uint16_t type, bodylen;
432 bodylen = EXTRACT_16BITS(tlv + 2);
434 ND_TCHECK2(*value, bodylen);
435 if (i + bodylen + 4 > length)
475 ND_PRINT((ndo," (%u)", bodylen + 4 ));
480 if (bodylen != 0)
487 if (bodylen != 4) {
499 if (bodylen != 8) {
514 if (bodylen != 8) {
527 if (bodylen < 20) {
541 hncp_print_rec(ndo, value+20, bodylen-20, indent+1);
548 if (bodylen != 12) {
566 if (bodylen < 8) {
580 if (bodylen <= 36) {
587 safeputs(ndo, value + 36, bodylen - 36);
594 if (bodylen < 5) {
606 safeputs(ndo, value + 4, bodylen - 4);
612 hncp_print_rec(ndo, value, bodylen, indent+1);
618 if (bodylen < 9 || bodylen < 9 + (value[8] + 7) / 8) {
626 l = print_prefix(ndo, value + 8, bodylen - 8);
646 if (bodylen >= l)
647 hncp_print_rec(ndo, value + l, bodylen - l, indent+1);
654 if (bodylen < 1) {
661 if (bodylen != 1) {
668 l = print_prefix(ndo, value, bodylen);
688 print_dns_label(ndo, value+1, bodylen-1, 1);
691 safeputs(ndo, value + 1, bodylen - 1);
693 if (bodylen != 1) {
705 if (bodylen == 0) {
709 if (dhcpv4_print(ndo, value, bodylen, indent+1) != 0)
715 if (bodylen == 0) {
719 if (dhcpv6_print(ndo, value, bodylen, indent+1) != 0) {
729 if (bodylen < 6 || bodylen < 6 + (value[5] + 7) / 8) {
739 if ((l = print_prefix(ndo, value + 5, bodylen - 5)) < 0) {
746 if (bodylen >= l)
747 hncp_print_rec(ndo, value + l, bodylen - l, indent+1);
754 if (bodylen < 20) {
765 hncp_print_rec(ndo, value + 20, bodylen - 20, indent+1);
772 if (bodylen < 17) {
783 len = print_dns_label(ndo, value+17, bodylen-17, 1);
790 if (bodylen >= len)
791 hncp_print_rec(ndo, value+len, bodylen-len, indent+1);
796 if (bodylen == 0) {
801 print_dns_label(ndo, value, bodylen, 1);
807 if (bodylen < 17) {
812 if (bodylen < 17 + l) {
828 if (bodylen >= l)
829 hncp_print_rec(ndo, value + l, bodylen - l, indent+1);
834 if (bodylen < 32) {
839 hncp_print_rec(ndo, value + 32, bodylen - 32, indent+1);
852 i += 4 + bodylen + (-bodylen & 3);