Lines Matching refs:len
595 register u_int len;
629 len = 0;
633 len = *bp++;
636 ND_PRINT((ndo, "\n\t %s Option %u, length %u%s", cp, tag, len,
637 len > 0 ? ": " : ""));
649 if (!ND_TTEST2(*bp, len)) {
650 ND_PRINT((ndo, "[|rfc1048 %u]", len));
654 if (tag == TAG_DHCP_MESSAGE && len == 1) {
662 while (len-- > 0) {
677 while (len > 1) {
678 len -= 2;
693 if (len & 1)
695 else if (len & 2)
706 if (fn_printn(ndo, bp, len, ndo->ndo_snapend)) {
711 bp += len;
712 len = 0;
719 while (len >= sizeof(ul)) {
731 len -= sizeof(ul);
738 while (len >= 2*sizeof(ul)) {
747 len -= 2*sizeof(ul);
754 while (len >= sizeof(us)) {
760 len -= sizeof(us);
767 while (len > 0) {
782 --len;
791 while (len > 0) {
799 --len;
810 if (len < 1) {
815 --len;
821 if (len < 1) {
826 --len;
832 if (len < 3) {
834 bp += len;
835 len = 0;
845 if (fn_printn(ndo, bp, len - 3, ndo->ndo_snapend)) {
850 bp += len - 3;
851 len = 0;
859 if (len < 1) {
864 len--;
867 if (fn_printn(ndo, bp, len, ndo->ndo_snapend)) {
872 bp += len;
873 len = 0;
877 while (len > 0) {
882 --len;
890 while (len >= 2) {
893 len -= 2;
894 if (suboptlen > len) {
899 bp += len;
900 len = 0;
920 len -= suboptlen;
931 if (len < 5) {
933 bp += len;
934 len = 0;
937 while (len > 0) {
941 len--;
945 bp += len;
946 len = 0;
951 if (len < significant_octets + 4) {
952 ND_PRINT((ndo, "[ERROR: Remaining length (%u) < %u bytes]", len, significant_octets + 4));
953 bp += len;
954 len = 0;
973 len -= (significant_octets + 4);
984 if (len < 2) {
986 bp += len;
987 len = 0;
990 while (len > 0) {
992 len--;
997 bp += len;
998 len = 0;
1001 if (len < suboptlen) {
1003 bp += len;
1004 len = 0;
1015 len -= suboptlen;
1023 tag, len));
1024 bp += len;
1025 len = 0;
1031 if (len) {
1032 ND_PRINT((ndo, "\n\t trailing data length %u", len));
1033 bp += len;