Lines Matching refs:len
419 u_int code, len;
448 len = EXTRACT_16BITS(tptr);
451 ND_PRINT((ndo, "\n\tencoded length %u (=Option(s) length %u)", len, len - 4));
474 x = len - 4; /* Code(1), Identifier(1) and Length(2) */
504 if ((j = (*pfunc)(ndo, tptr, len)) == 0)
526 if (len > 6) {
528 print_unknown_data(ndo, tptr + 2, "\n\t ", len - 2);
539 if (len > 8) {
541 ND_TCHECK2(tptr[4], len - 8);
542 print_unknown_data(ndo, tptr + 4, "\n\t ", len - 8);
551 if (len > 8) {
553 if (fn_printn(ndo, tptr + 4, len - 4, ndo->ndo_snapend))
585 int len, opt;
590 len = p[1];
592 if (length < len)
594 if (len < 2) {
597 lcpconfopts[opt], opt, len));
603 ND_PRINT((ndo, "\n\t %s Option (0x%02x), length %u", lcpconfopts[opt], opt, len));
606 return len;
611 if (len < 6) {
613 return len;
623 for (i = 0; i < len - 6; i++) {
630 if (len != 4) {
632 return len;
638 if (len != 6) {
640 return len;
646 if (len < 4) {
648 return len;
664 print_unknown_data(ndo, p, "\n\t", len);
668 if (len < 4) {
679 if (len != 6) {
691 if (len != 4) {
699 if (len < 3) {
710 if (len != 4) {
718 if (len < 3) {
731 if (len != 7) {
739 if (len != 9) {
787 print_unknown_data(ndo, &p[2], "\n\t ", len - 2);
792 print_unknown_data(ndo, &p[2], "\n\t ", len - 2); /* exclude TLV header */
794 return len;
826 u_int code, len;
853 len = EXTRACT_16BITS(p);
878 name_size = len - (p - p0);
887 msg_size = len - (p - p0);
906 u_int code, len;
933 len = EXTRACT_16BITS(p);
936 if ((int)len > length) {
937 ND_PRINT((ndo, ", length %u > packet size", len));
940 length = len;
1010 int len, opt;
1016 len = p[1];
1018 if (length < len)
1020 if (len < 2) {
1024 len));
1031 len));
1035 if (len != 10) {
1037 return len;
1045 if (len < 4) {
1061 if (len < IPCPOPT_IPCOMP_MINLEN) {
1077 if (len > IPCPOPT_IPCOMP_MINLEN) {
1078 ipcomp_subopttotallen = len - IPCPOPT_IPCOMP_MINLEN;
1117 if (len != 6) {
1130 print_unknown_data(ndo, &p[2], "\n\t ", len - 2);
1134 print_unknown_data(ndo, &p[2], "\n\t ", len - 2); /* exclude TLV header */
1135 return len;
1147 int len, opt;
1152 len = p[1];
1154 if (length < len)
1156 if (len < 2) {
1160 len));
1167 len));
1171 if (len != 10) {
1173 return len;
1188 print_unknown_data(ndo, &p[2], "\n\t ", len - 2);
1192 print_unknown_data(ndo, &p[2], "\n\t ", len - 2); /* exclude TLV header */
1194 return len;
1207 int len, opt;
1212 len = p[1];
1214 if (length < len)
1216 if (len < 2) {
1220 len));
1227 len));
1231 if (len < 3) {
1233 return len;
1240 if (len < 4) {
1242 return len;
1251 if (len < 4) {
1253 return len;
1284 print_unknown_data(ndo, &p[2], "\n\t ", len - 2);
1288 print_unknown_data(ndo, &p[2], "\n\t ", len - 2); /* exclude TLV header */
1290 return len;
1302 int len, opt;
1307 len = p[1];
1309 if (length < len)
1311 if (len < 2) {
1315 len));
1322 len));
1326 if (len != 6) {
1328 return len;
1339 print_unknown_data(ndo, &p[2], "\n\t ", len - 2);
1343 print_unknown_data(ndo, &p[2], "\n\t ", len - 2); /* exclude TLV header */
1345 return len;
1570 register u_int length = h->len;
1637 register u_int length = h->len;
1701 register u_int length = h->len;