Lines Matching refs:restlen
608 int restlen = ic->parm.dss1_io.datalen; in interrogate_success() local
613 if (restlen < 2) return(-100); /* frame too short */ in interrogate_success()
616 restlen -= 2; /* remaining bytes */ in interrogate_success()
618 { if (restlen < 2) return(-103); in interrogate_success()
619 if ((*(src+restlen-1)) || (*(src+restlen-2))) return(-104); in interrogate_success()
620 restlen -= 2; in interrogate_success()
625 restlen--; in interrogate_success()
626 if (n > restlen) return(-105); in interrogate_success()
627 restlen = n; in interrogate_success()
630 if (n > restlen) return(-106); in interrogate_success()
632 restlen = n; /* standard format */ in interrogate_success()
633 if (restlen < 3) return(-107); /* no procedure */ in interrogate_success()
635 restlen -= 3; in interrogate_success()
636 if (restlen < 2) return(-109); /* list missing */ in interrogate_success()
640 restlen -= 2; /* remaining bytes */ in interrogate_success()
642 { if (restlen < 2) return(-111); in interrogate_success()
643 if ((*(src+restlen-1)) || (*(src+restlen-2))) return(-112); in interrogate_success()
644 restlen -= 2; in interrogate_success()
649 restlen--; in interrogate_success()
650 if (n > restlen) return(-113); in interrogate_success()
651 restlen = n; in interrogate_success()
654 if (n > restlen) return(-114); in interrogate_success()
656 restlen = n; /* standard format */ in interrogate_success()
659 while (restlen >= 2) in interrogate_success()
666 restlen -= 2; in interrogate_success()
667 if (n > restlen) return(-116); /* enum length wrong */ in interrogate_success()
668 restlen -= n; in interrogate_success()
693 if (restlen) return(-117); in interrogate_success()