Home | History | Annotate | Download | only in tcpdump

Lines Matching full:len

366 	register u_int len;
400 len = 0;
404 len = *bp++;
407 printf("\n\t %s Option %u, length %u%s", cp, tag, len,
408 len > 0 ? ": " : "");
420 if (!TTEST2(*bp, len)) {
421 printf("[|rfc1048 %u]", len);
425 if (tag == TAG_DHCP_MESSAGE && len == 1) {
433 while (len-- > 0) {
448 while (len > 1) {
449 len -= 2;
464 if (len & 1)
466 else if (len & 2)
477 if (fn_printn(bp, len, snapend)) {
482 bp += len;
483 len = 0;
490 while (len >= sizeof(ul)) {
502 len -= sizeof(ul);
509 while (len >= 2*sizeof(ul)) {
518 len -= 2*sizeof(ul);
525 while (len >= sizeof(us)) {
531 len -= sizeof(us);
538 while (len > 0) {
553 --len;
562 while (len > 0) {
570 --len;
581 if (len < 1) {
582 printf("ERROR: option %u len %u < 1 bytes",
583 TAG_NETBIOS_NODE, len);
584 bp += len;
585 len = 0;
589 --len;
595 if (len < 1) {
596 printf("ERROR: option %u len %u < 1 bytes",
597 TAG_OPT_OVERLOAD, len);
598 bp += len;
599 len = 0;
603 --len;
609 if (len < 3) {
610 printf("ERROR: option %u len %u < 3 bytes",
611 TAG_CLIENT_FQDN, len);
612 bp += len;
613 len = 0;
623 if (fn_printn(bp, len - 3, snapend)) {
628 bp += len - 3;
629 len = 0;
636 if (len
637 printf("ERROR: option %u len %u < 1 bytes",
638 TAG_CLIENT_ID, len);
639 bp += len;
640 len = 0;
644 len--;
647 if (fn_printn(bp, len, snapend)) {
652 bp += len;
653 len = 0;
657 while (len > 0) {
662 --len;
670 while (len >= 2) {
673 len -= 2;
674 if (suboptlen > len) {
679 bp += len;
680 len = 0;
697 len -= suboptlen;
708 if (len < 5) {
709 printf("ERROR: option %u len %u < 5 bytes",
710 TAG_CLASSLESS_STATIC_RT, len);
711 bp += len;
712 len = 0;
715 while (len > 0) {
719 len--;
723 bp += len;
724 len = 0;
729 if (len < significant_octets + 4) {
730 printf("[ERROR: Remaining length (%u) < %u bytes]", len, significant_octets + 4);
731 bp += len;
732 len = 0;
751 len -= (significant_octets + 4);
759 tag, len);
760 bp += len;
761 len = 0;
767 if (len) {
768 printf("\n\t trailing data length %u", len);
769 bp += len;