Searched refs:PPP_HDRLEN (Results 1 - 19 of 19) sorted by relevance

/openbsd-current/sys/net/
H A Dppp-deflate.c251 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 Dif_ppp.c218 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 Dppp_defs.h45 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro
H A Dbsd-comp.c545 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 Dppp_tty.c144 #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 Dpipex.c2691 if (m0->m_pkthdr.len < PPP_HDRLEN)
2693 if ((m0 = m_pullup(m0, PPP_HDRLEN)) == NULL)
/openbsd-current/usr.sbin/pppd/
H A Ddemand.c91 framemax += PPP_HDRLEN + PPP_FCSLEN;
262 if (len < PPP_HDRLEN)
326 if (len < PPP_HDRLEN)
H A Dmain.c115 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 Dfsm.c767 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 Dchap.c699 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 Dupap.c526 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
558 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
H A Dcbcp.c379 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
H A Doptions.c1109 pc.snapshot = PPP_HDRLEN;
1125 pc.snapshot = PPP_HDRLEN;
H A Dipcp.c1537 len -= PPP_HDRLEN;
1538 pkt += PPP_HDRLEN;
H A Dsys-bsd.c675 if ((len = read(ttyfd, buf, PPP_MTU + PPP_HDRLEN)) == -1) {
/openbsd-current/usr.sbin/npppd/npppd/
H A Dppp.h31 #define PPP_HDRLEN 4 macro
H A Dfsm.c728 outp = f->ppp->outpacket_buf + PPP_HDRLEN + HEADERLEN;
H A Dppp.c1042 return _this->outpacket_buf + (PPP_HDRLEN - save);
/openbsd-current/usr.sbin/tcpdump/
H A Dprint-ppp.c1163 default_print((const u_char *)(p + PPP_HDRLEN),
1164 caplen - PPP_HDRLEN);

Completed in 364 milliseconds