Lines Matching refs:rptr
303 u_char *rptr, *wptr;
311 rptr = mp->b_rptr;
312 if (rptr + PPP_HDRLEN > mp->b_wptr) {
315 rptr = mp->b_rptr;
317 proto = PPP_PROTOCOL(rptr);
345 wptr[0] = PPP_ADDRESS(rptr);
346 wptr[1] = PPP_CONTROL(rptr);
361 rptr += (proto > 0xff)? 2: 3; /* skip 1st proto byte if 0 */
362 state->strm.next_in = rptr;
363 state->strm.avail_in = mp->b_wptr - rptr;
572 u_char *rptr, *wptr;
578 rptr = mi->b_rptr;
580 while (rptr >= mi->b_wptr) {
584 rptr = mi->b_rptr;
586 hdr[i] = *rptr++;
625 state->strm.next_in = rptr;
626 state->strm.avail_in = mi->b_wptr - rptr;
713 u_char *rptr;
719 rptr = mi->b_rptr;
720 if (rptr + PPP_HDRLEN > mi->b_wptr) {
723 rptr = mi->b_rptr;
725 proto = PPP_PROTOCOL(rptr);
738 state->strm.next_in = rptr + 3;