Lines Matching refs:len
178 unsigned int len, unsigned char *p_r)
199 if(omitted > 4 || pb > 4 || (pb > omitted && len < pb - omitted))
212 if(omitted > 16 || (pb > omitted && len < pb - omitted))
224 if(pb > 8 && len < pb - 8) return -1;
241 network_address(int ae, const unsigned char *a, unsigned int len,
244 return network_prefix(ae, -1, 0, a, NULL, len, a_r);
363 u_int type, len;
376 len = message[1];
378 ND_TCHECK2(*message, 2 + len);
379 ICHECK(i, 2 + len);
386 ND_PRINT((ndo, "\n\tPad %d", len + 2));
396 if(len < 6) goto corrupt;
410 if(len < 2) goto corrupt;
423 if(len < 6) goto corrupt;
428 if(len > 6)
429 subtlvs_print(ndo, message + 8, message + 2 + len, type);
442 if(len < 6) goto corrupt;
445 rc = network_address(message[2], message + 8, len - 6, address);
450 if((u_int)rc < len - 6)
451 subtlvs_print(ndo, message + 8 + rc, message + 2 + len,
462 if(len < 10) goto corrupt;
475 if(len < 2) goto corrupt;
476 rc = network_address(message[2], message + 4, len - 2, nh);
486 if(len < 1)
499 if(len < 10) goto corrupt;
504 len - 10, prefix);
522 if((u_int)rc < len - 10)
523 subtlvs_print(ndo, message + 12 + rc, message + 2 + len, type);
535 if(len < 2) goto corrupt;
538 message + 4, NULL, len - 2, prefix);
554 if(len < 14) goto corrupt;
557 message + 16, NULL, len - 14, prefix);
571 if(len < 6) goto corrupt;
582 if(len < 18) goto corrupt;
583 ND_PRINT((ndo, "key-id %u digest-%u ", EXTRACT_16BITS(message + 2), len - 2));
584 for (j = 0; j < len - 2; j++)
595 i += len + 2;