Home | History | Annotate | Download | only in pppd

Lines Matching full:len

172 static void ccp_input __P((int unit, u_char *pkt, int len));
174 static int ccp_printpkt __P((u_char *pkt, int len,
177 static void ccp_datainput __P((int unit, u_char *pkt, int len));
442 ccp_input(unit, p, len)
445 int len;
454 fsm_input(f, p, len);
478 ccp_extcode(f, code, id, p, len)
482 int len;
808 ccp_ackci(f, p, len)
811 int len;
823 if (len < CILEN_MPPE || memcmp(opt_buf, p, CILEN_MPPE))
826 len -= CILEN_MPPE;
828 if (len == 0)
833 if (len < CILEN_DEFLATE
840 len -= CILEN_DEFLATE;
842 if (len == 0)
845 if (len < CILEN_DEFLATE
852 len -= CILEN_DEFLATE;
856 if (len < CILEN_BSD_COMPRESS
861 len -= CILEN_BSD_COMPRESS;
863 if (p == p0 && len == 0)
867 if (len < CILEN_PREDICTOR_1
871 len -= CILEN_PREDICTOR_1;
873 if (p == p0 && len == 0)
877 if (len < CILEN_PREDICTOR_2
881 len -= CILEN_PREDICTOR_2;
883 if (p == p0 && len == 0)
887 if (len != 0)
897 ccp_nakci(f, p, len, treat_as_reject)
900 int len;
910 if (go->mppe && len >= CILEN_MPPE
932 if (go->deflate && len >= CILEN_DEFLATE
947 len -= CILEN_DEFLATE;
949 && len >= CILEN_DEFLATE && p[0] == CI_DEFLATE_DRAFT
952 len -= CILEN_DEFLATE;
956 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
968 len -= CILEN_BSD_COMPRESS;
986 ccp_rejci(f, p, len)
989 int len;
1000 if (len == 0 && all_rejected[f->unit])
1004 if (go->mppe && len >= CILEN_MPPE
1009 len -= CILEN_MPPE;
1012 if (go->deflate_correct && len >= CILEN_DEFLATE
1019 len -= CILEN_DEFLATE;
1021 if (go->deflate_draft && len >= CILEN_DEFLATE
1028 len -= CILEN_DEFLATE;
1032 if (go->bsd_compress && len >= CILEN_BSD_COMPRESS
1038 len -= CILEN_BSD_COMPRESS;
1040 if (go->predictor_1 && len >= CILEN_PREDICTOR_1
1044 len -= CILEN_PREDICTOR_1;
1046 if (go->predictor_2 && len >= CILEN_PREDICTOR_2
1050 len -= CILEN_PREDICTOR_2;
1053 if (len != 0)
1076 int len, clen, type, nb;
1086 len = *lenp;
1089 ho->method = (len > 0)? p[0]: -1;
1091 while (len > 0) {
1093 if (len < 2 || p[1] < 2 || p[1] > len) {
1095 clen = len;
1334 len -= clen;
1492 int code, id, len;
1500 len = (p[2] << 8) + p[3];
1501 if (len < HEADERLEN || len > plen)
1510 len -= HEADERLEN;
1519 while (len >= 2) {
1522 if (optlen < 2 || optlen > len)
1525 len -= optlen;
1590 if (len > 0 && *p >= ' ' && *p < 0x7f) {
1591 print_string((char *)p, len, printer, arg);
1592 p += len;
1593 len = 0;
1599 while (--len >= 0)
1618 ccp_datainput(unit, pkt, len)
1621 int len;