Lines Matching refs:len
258 ipcp_input(int unit, u_char *p, int len)
260 fsm_input(&ipcp_fsm[unit], p, len);
351 int len = *lenp;
356 if (len >= vjlen) { \
364 len -= vjlen; \
373 if (len >= addrlen) { \
383 len -= addrlen; \
391 if (len >= CILEN_ADDR) { \
397 len -= CILEN_ADDR; \
413 *lenp -= len;
425 ipcp_ackci(fsm *f, u_char *p, int len)
441 if ((len -= vjlen) < 0) { \
470 if ((len -= addrlen) < 0) { \
496 if ((len -= CILEN_ADDR) < 0) { \
525 if (len != 0) {
545 ipcp_nakci(fsm *f, u_char *p, int len)
565 len >= (cilen = (old? CILEN_ADDRS: CILEN_ADDR)) && \
568 len -= cilen; \
586 len >= cilen && \
588 len -= cilen; \
598 len >= cilen && \
600 len -= cilen; \
672 while (len > CILEN_VOID) {
675 if( (len -= cilen) < 0 ) {
727 if (len != 0) {
750 ipcp_rejci(fsm *f, u_char *p, int len)
766 len >= (cilen = old? CILEN_ADDRS: CILEN_ADDR) && \
770 len -= cilen; \
792 len >= p[1] && \
794 len -= p[1]; \
817 len >= cilen && \
820 len -= cilen; \
844 if (len != 0) {
869 ipcp_reqci(fsm *f, u_char *inp/* Requested CIs */,int *len/* Length of requested CIs */,int reject_if_disagree)
878 u_short cilen, citype; /* Parsed len, type */
888 int l = *len; /* Length left */
989 IPCPDEBUG(LOG_INFO, ("ipcp_reqci: Reject ADDR bad len\n"));
1077 IPCPDEBUG(LOG_INFO, ("ipcp_reqci: Rejecting COMPRESSTYPE len=%d\n", cilen));
1186 *len = (int)(ucp - inp); /* Compute output length */
1383 ip_active_pkt(u_char *pkt, int len)
1388 len -= PPP_HDRLEN;
1390 if (len < IP_HDRLEN) {
1400 if (len < hlen + TCP_HDRLEN) {
1404 if ((get_tcpflags(tcp) & TH_FIN) != 0 && len == hlen + get_tcpoff(tcp) * 4) {