/titanic_44/usr/src/uts/common/io/ppp/spppcomp/ |
H A D | spppcomp.c | 433 if (MBLKL(mp) < PPP_HDRLEN) { in spppcomp_outpkt() 439 zmp = msgpullup(mp, PPP_HDRLEN); in spppcomp_outpkt() 451 MSG_BYTE(mp, PPP_HDRLEN+offsetof(struct ip, ip_p)) == in spppcomp_outpkt() 455 uint32_t indata[(PPP_HDRLEN+MAX_TCPIPHLEN) / in spppcomp_outpkt() 474 srcp = (void *)(mp->b_rptr + PPP_HDRLEN); in spppcomp_outpkt() 490 srcp = (void *)(indata + PPP_HDRLEN/sizeof (*indata)); in spppcomp_outpkt() 493 type = vj_compress_tcp((struct ip *)srcp, len - PPP_HDRLEN, in spppcomp_outpkt() 523 (void *)(indata + PPP_HDRLEN / sizeof (*indata))) { in spppcomp_outpkt() 524 thislen = PPP_HDRLEN + in spppcomp_outpkt() 560 ASSERT(copied >= PPP_HDRLEN); in spppcomp_outpkt() [all …]
|
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 | bsd-comp.c | 569 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()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | demand.c | 83 framemax += PPP_HDRLEN + PPP_FCSLEN; in demand_conf() 277 if (len < PPP_HDRLEN) 345 if (len < PPP_HDRLEN)
|
H A D | fsm.c | 441 if (inp >= outpacket_buf && inp < outpacket_buf+PPP_MRU+PPP_HDRLEN) 841 outp = outpacket_buf + PPP_HDRLEN + HEADERLEN; 889 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN) 890 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen); 896 output(f->unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | chap.c | 816 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN); 855 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN); 919 output(cstate->unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | main.c | 169 u_char outpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for outgoing packet */ 170 u_char inpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for incoming packet */ 1417 if (len < PPP_HDRLEN) { in get_input() 1418 dbglog("Discarded short packet (%d < %d)", len, PPP_HDRLEN); in get_input() 1424 len -= PPP_HDRLEN; in get_input() 1468 lcp_sprotrej(0, p - PPP_HDRLEN, len + PPP_HDRLEN); in get_input()
|
H A D | upap.c | 622 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN); 653 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | utils.c | 539 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) { 542 len -= PPP_HDRLEN;
|
H A D | cbcp.c | 450 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
H A D | ipv6cp.c | 1510 len -= PPP_HDRLEN; 1511 pkt += PPP_HDRLEN;
|
H A D | options.c | 1564 pc.snapshot = PPP_HDRLEN; 1583 pc.snapshot = PPP_HDRLEN;
|
H A D | ipcp.c | 1947 len -= PPP_HDRLEN; 1948 pkt += PPP_HDRLEN;
|
H A D | sys-solaris.c | 1763 data.maxlen = PPP_MRU + PPP_HDRLEN;
|
H A D | lcp.c | 116 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
|
/titanic_44/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);
|
/titanic_44/usr/src/uts/common/net/ |
H A D | ppp_defs.h | 45 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro 55 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
|
/titanic_44/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp.c | 1013 if ((nmp = allocb(PPP_HDRLEN, BPRI_MED)) == NULL) { in sppp_inner_ioctl() 1024 ASSERT(MBLKL(nmp) == PPP_HDRLEN); in sppp_inner_ioctl() 1565 if (msize > (ppa->ppa_mtu + PPP_HDRLEN)) { in sppp_send() 1570 } else if (msize < PPP_HDRLEN) { in sppp_send() 2008 if (len < PPP_HDRLEN) { in sppp_recv() 2015 } else if (len > (ppa->ppa_mru + PPP_HDRLEN)) { in sppp_recv() 2026 if (MBLKL(mp) < PPP_HDRLEN) { in sppp_recv() 2027 zmp = msgpullup(mp, PPP_HDRLEN); in sppp_recv() 2103 mp->b_rptr += PPP_HDRLEN; in sppp_recv() 2108 mp->b_rptr += PPP_HDRLEN; in sppp_recv() [all …]
|
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()
|
/titanic_44/usr/src/uts/common/io/ppp/spppasyn/ |
H A D | spppasyn.c | 1760 if ((new_frame = allocb(PPP_HDRLEN+1, in spppasyn_muxencode() 1939 if ((hdrmp = allocb(PPP_HDRLEN, BPRI_MED)) == NULL) { in spppasyn_inpkt()
|