Searched refs:PPP_HDRLEN (Results 1 - 19 of 19) sorted by relevance
/openbsd-current/sys/net/ |
H A D | ppp-deflate.c | 251 if (state->hdrlen + PPP_HDRLEN + 2 < wspace) { 264 wptr += PPP_HDRLEN; 269 state->strm.avail_out = wspace - (PPP_HDRLEN + 2); 329 && !(olen == PPP_HDRLEN + 3 && *wptr == 0)) { 465 u_char hdr[PPP_HDRLEN + DEFLATE_OVHD]; 470 for (i = 0; i < PPP_HDRLEN + DEFLATE_OVHD; ++i) { 483 seq = (hdr[PPP_HDRLEN] << 8) + hdr[PPP_HDRLEN+1]; 501 if (state->hdrlen + PPP_HDRLEN < ospace) { 524 rlen += PPP_HDRLEN [all...] |
H A D | if_ppp.c | 218 sc->sc_if.if_hdrlen = PPP_HDRLEN; 228 bpfattach(&ifp->if_bpf, ifp, DLT_PPP, PPP_HDRLEN); 722 M_PREPEND(m0, PPP_HDRLEN, M_DONTWAIT); 908 ip = (struct ip *)(cp + PPP_HDRLEN); 909 if (mp->m_len <= PPP_HDRLEN) { 959 sc->sc_if.if_mtu + PPP_HDRLEN : 0)); 1046 if (m->m_len <= PPP_HDRLEN) { 1053 dp = mtod(mp, u_char *) + PPP_HDRLEN; 1282 xlen = sl_uncompress_tcp_core(cp + PPP_HDRLEN, 1283 m->m_len - PPP_HDRLEN, ile [all...] |
H A D | ppp_defs.h | 45 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro
|
H A D | bsd-comp.c | 545 rptr += PPP_HDRLEN; 546 slen = mp->m_len - PPP_HDRLEN; 642 if (olen + PPP_HDRLEN + BSD_OVHD > maxolen) { 653 return olen + PPP_HDRLEN + BSD_OVHD; 692 rptr += PPP_HDRLEN; 693 slen = dmsg->m_len - PPP_HDRLEN; 817 rptr += PPP_HDRLEN; 818 len = cmp->m_len - PPP_HDRLEN; 856 space = m_trailingspace(dmp) - PPP_HDRLEN + 1; 865 wptr += PPP_HDRLEN [all...] |
H A D | ppp_tty.c | 144 #define PKT_MAXLEN(_sc) ((_sc)->sc_mru + PPP_HDRLEN + PPP_FCSLEN) 347 if (uio->uio_resid > sc->sc_if.if_mtu + PPP_HDRLEN || 348 uio->uio_resid < PPP_HDRLEN) 353 m->m_pkthdr.len = uio->uio_resid - PPP_HDRLEN; 371 bcopy(mtod(m0, u_char *), dst.sa_data, PPP_HDRLEN); local 372 m0->m_data += PPP_HDRLEN; 373 m0->m_len -= PPP_HDRLEN; 877 if (ilen < PPP_HDRLEN + PPP_FCSLEN) {
|
H A D | pipex.c | 2691 if (m0->m_pkthdr.len < PPP_HDRLEN) 2693 if ((m0 = m_pullup(m0, PPP_HDRLEN)) == NULL)
|
/openbsd-current/usr.sbin/pppd/ |
H A D | demand.c | 91 framemax += PPP_HDRLEN + PPP_FCSLEN; 262 if (len < PPP_HDRLEN) 326 if (len < PPP_HDRLEN)
|
H A D | main.c | 115 u_char outpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for outgoing packet */ 116 u_char inpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for incoming packet */ 661 if (len < PPP_HDRLEN) { 668 len -= PPP_HDRLEN; 708 lcp_sprotrej(0, p - PPP_HDRLEN, len + PPP_HDRLEN); 1256 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) { 1259 len -= PPP_HDRLEN;
|
H A D | fsm.c | 767 outp = outpacket_buf + PPP_HDRLEN + HEADERLEN; 808 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN) 809 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen); 815 output(f->unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | chap.c | 699 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN); 735 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN); 796 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | upap.c | 526 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN); 558 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | cbcp.c | 379 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | options.c | 1109 pc.snapshot = PPP_HDRLEN; 1125 pc.snapshot = PPP_HDRLEN;
|
H A D | ipcp.c | 1537 len -= PPP_HDRLEN; 1538 pkt += PPP_HDRLEN;
|
H A D | sys-bsd.c | 675 if ((len = read(ttyfd, buf, PPP_MTU + PPP_HDRLEN)) == -1) {
|
/openbsd-current/usr.sbin/npppd/npppd/ |
H A D | ppp.h | 31 #define PPP_HDRLEN 4 macro
|
H A D | fsm.c | 728 outp = f->ppp->outpacket_buf + PPP_HDRLEN + HEADERLEN;
|
H A D | ppp.c | 1042 return _this->outpacket_buf + (PPP_HDRLEN - save);
|
/openbsd-current/usr.sbin/tcpdump/ |
H A D | print-ppp.c | 1163 default_print((const u_char *)(p + PPP_HDRLEN), 1164 caplen - PPP_HDRLEN);
|
Completed in 364 milliseconds