Home
last modified time | relevance | path

Searched refs:PPP_HDRLEN (Results 1 – 20 of 20) sorted by relevance

/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/
H A Dspppcomp.c436 if (MBLKL(mp) < PPP_HDRLEN) { in spppcomp_outpkt()
527 thislen = PPP_HDRLEN + in spppcomp_outpkt()
563 ASSERT(copied >= PPP_HDRLEN); in spppcomp_outpkt()
580 copied -= PPP_HDRLEN; in spppcomp_outpkt()
606 cp->cp_mtu + PPP_HDRLEN); in spppcomp_outpkt()
1370 if (hlen != PPP_HDRLEN) { in spppcomp_inpkt()
1392 mp->b_wptr += PPP_HDRLEN; in spppcomp_inpkt()
1492 dp = np->b_rptr + PPP_HDRLEN; in spppcomp_inpkt()
1518 dp = np->b_rptr + PPP_HDRLEN; in spppcomp_inpkt()
1641 dp = mp->b_rptr + PPP_HDRLEN; in comp_ccp()
[all …]
H A Ddeflate.c373 if (maxolen <= PPP_HDRLEN + 2) { in z_compress()
391 if (state->hdrlen + PPP_HDRLEN + 2 < wspace) { in z_compress()
408 wptr += PPP_HDRLEN; in z_compress()
424 state->strm.avail_out = wspace - (PPP_HDRLEN + 2); in z_compress()
790 rptr = mi->b_rptr + PPP_HDRLEN; in z_decompress()
801 hdlcaddr = rptr[-PPP_HDRLEN]; in z_decompress()
802 hdlcctrl = rptr[-PPP_HDRLEN+1]; in z_decompress()
890 rlen = state->strm.avail_in + PPP_HDRLEN + DEFLATE_OVHD; in z_decompress()
941 state->strm.avail_out = ospace - PPP_HDRLEN; in z_decompress()
982 if ((olen > state->mru + PPP_HDRLEN) && (state->flags & DS_DEBUG)) { in z_decompress()
[all …]
H A Dbsd-comp.c569 int ilen = slen - (PPP_HDRLEN-1); in bsd_compress()
861 if (wptr == NULL || olen + PPP_HDRLEN + BSD_OVHD >= maxolen) { in bsd_compress()
887 return (olen + PPP_HDRLEN + BSD_OVHD); in bsd_compress()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Ddemand.c77 framemax += PPP_HDRLEN + PPP_FCSLEN; in demand_conf()
271 if (len < PPP_HDRLEN)
339 if (len < PPP_HDRLEN)
H A Dfsm.c434 if (inp >= outpacket_buf && inp < outpacket_buf+PPP_MRU+PPP_HDRLEN)
834 outp = outpacket_buf + PPP_HDRLEN + HEADERLEN;
882 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN)
883 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen);
889 output(f->unit, outpacket_buf, outlen + PPP_HDRLEN);
H A Dchap.c806 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN);
845 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN);
909 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN);
H A Dmain.c166 u_char outpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for outgoing packet */
167 u_char inpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for incoming packet */
1414 if (len < PPP_HDRLEN) { in get_input()
1415 dbglog("Discarded short packet (%d < %d)", len, PPP_HDRLEN); in get_input()
1421 len -= PPP_HDRLEN; in get_input()
1465 lcp_sprotrej(0, p - PPP_HDRLEN, len + PPP_HDRLEN); in get_input()
H A Dupap.c615 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
646 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
H A Dutils.c532 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) {
535 len -= PPP_HDRLEN;
H A Dcbcp.c443 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
H A Dipv6cp.c1506 len -= PPP_HDRLEN;
1507 pkt += PPP_HDRLEN;
H A Doptions.c1558 pc.snapshot = PPP_HDRLEN;
1577 pc.snapshot = PPP_HDRLEN;
H A Dipcp.c1940 len -= PPP_HDRLEN;
1941 pkt += PPP_HDRLEN;
H A Dsys-solaris.c1704 data.maxlen = PPP_MRU + PPP_HDRLEN;
H A Dlcp.c108 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/
H A Ddeflate.c261 rlen = state->strm.avail_in + PPP_HDRLEN + DEFLATE_OVHD;
282 if (olen > state->mru + PPP_HDRLEN)
284 state->unit, olen, state->mru + PPP_HDRLEN);
/illumos-gate/usr/src/uts/common/net/
H A Dppp_defs.h45 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro
55 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
/illumos-gate/usr/src/uts/common/io/ppp/sppp/
H A Dsppp.c1029 ASSERT(MBLKL(nmp) == PPP_HDRLEN); in sppp_inner_ioctl()
1570 if (msize > (ppa->ppa_mtu + PPP_HDRLEN)) { in sppp_send()
1575 } else if (msize < PPP_HDRLEN) { in sppp_send()
2016 if (len < PPP_HDRLEN) { in sppp_recv()
2023 } else if (len > (ppa->ppa_mru + PPP_HDRLEN)) { in sppp_recv()
2034 if (MBLKL(mp) < PPP_HDRLEN) { in sppp_recv()
2035 zmp = msgpullup(mp, PPP_HDRLEN); in sppp_recv()
2111 mp->b_rptr += PPP_HDRLEN; in sppp_recv()
2116 mp->b_rptr += PPP_HDRLEN; in sppp_recv()
2350 mp->b_rptr += PPP_HDRLEN; in sppp_release_pkts()
[all …]
H A Dsppp_dlpi.c866 if ((hdrmp = allocb(PPP_HDRLEN, BPRI_MED)) == NULL) { in sppp_dlunitdatareq()
898 ASSERT(MBLKL(mp) == PPP_HDRLEN); in sppp_dlunitdatareq()
1119 mp->b_rptr -= PPP_HDRLEN; in sppp_dladdether()
1179 mp->b_rptr -= PPP_HDRLEN; in sppp_dladdud()
1233 dmp->b_rptr += PPP_HDRLEN; in sppp_dlprsendup()
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/
H A Dspppasyn.c1761 if ((new_frame = allocb(PPP_HDRLEN+1, in spppasyn_muxencode()
1940 if ((hdrmp = allocb(PPP_HDRLEN, BPRI_MED)) == NULL) { in spppasyn_inpkt()