/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | cbcp.c | 443 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | chap.c | 806 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 D | fsm.c | 434 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 D | sys-solaris.c | 1704 data.maxlen = PPP_MRU + PPP_HDRLEN;
|
H A D | upap.c | 615 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN); 646 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | utils.c | 532 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) { 535 len -= PPP_HDRLEN;
|
H A D | main.c | 166 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 D | options.c | 1558 pc.snapshot = PPP_HDRLEN; 1577 pc.snapshot = PPP_HDRLEN;
|
H A D | lcp.c | 108 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
|
H A D | ipv6cp.c | 1506 len -= PPP_HDRLEN; 1507 pkt += PPP_HDRLEN;
|
H A D | demand.c | 77 framemax += PPP_HDRLEN + PPP_FCSLEN; in demand_conf() 271 if (len < PPP_HDRLEN) 339 if (len < PPP_HDRLEN)
|
H A D | ipcp.c | 1940 len -= PPP_HDRLEN; 1941 pkt += PPP_HDRLEN;
|
/illumos-gate/usr/src/uts/common/net/ |
H A D | ppp_defs.h | 43 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro 53 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
|
/illumos-gate/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | bsd-comp.c | 567 int ilen = slen - (PPP_HDRLEN-1); in bsd_compress() 859 if (wptr == NULL || olen + PPP_HDRLEN + BSD_OVHD >= maxolen) { in bsd_compress() 885 return (olen + PPP_HDRLEN + BSD_OVHD); in bsd_compress()
|
H A D | deflate.c | 373 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 D | spppcomp.c | 436 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 …]
|
/illumos-gate/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 1759 if ((new_frame = allocb(PPP_HDRLEN+1, in spppasyn_muxencode() 1938 if ((hdrmp = allocb(PPP_HDRLEN, BPRI_MED)) == NULL) { in spppasyn_inpkt()
|
/illumos-gate/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp_dlpi.c | 866 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()
|
H A D | sppp.c | 1029 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 …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppdump/ |
H A D | deflate.c | 261 rlen = state->strm.avail_in + PPP_HDRLEN + DEFLATE_OVHD; 282 if (olen > state->mru + PPP_HDRLEN) 284 state->unit, olen, state->mru + PPP_HDRLEN);
|