| /netbsd/src/sys/net/ |
| D | ppp-deflate.c | 258 if (state->hdrlen + PPP_HDRLEN + 2 < wspace) { in z_compress() 271 wptr += PPP_HDRLEN; in z_compress() 276 state->strm.avail_out = wspace - (PPP_HDRLEN + 2); in z_compress() 469 u_char hdr[PPP_HDRLEN + DEFLATE_OVHD]; in z_decompress() 474 for (i = 0; i < PPP_HDRLEN + DEFLATE_OVHD; ++i) { in z_decompress() 487 seq = (hdr[PPP_HDRLEN] << 8) + hdr[PPP_HDRLEN+1]; in z_decompress() 505 if (state->hdrlen + PPP_HDRLEN < ospace) { in z_decompress() 528 rlen += PPP_HDRLEN + DEFLATE_OVHD; in z_decompress() 560 state->strm.avail_out = ospace - PPP_HDRLEN; in z_decompress() 590 if (olen > state->mru + PPP_HDRLEN) in z_decompress() [all …]
|
| D | if_ppp.c | 313 sc->sc_if.if_hdrlen = PPP_HDRLEN; in ppp_create() 957 M_PREPEND(m0, PPP_HDRLEN, M_DONTWAIT); in pppoutput() 1167 ip = (struct ip *)(cp + PPP_HDRLEN); in ppp_dequeue() 1168 if (mp->m_len <= PPP_HDRLEN) { in ppp_dequeue() 1217 (sc->sc_xc_state, &mcomp, m, slen, sc->sc_if.if_mtu + PPP_HDRLEN); in ppp_dequeue() 1308 if (m->m_len <= PPP_HDRLEN) { in ppp_ccp() 1315 dp = mtod(mp, u_char *) + PPP_HDRLEN; in ppp_ccp() 1553 xlen = sl_uncompress_tcp_core(cp + PPP_HDRLEN, in ppp_inproc() 1554 m->m_len - PPP_HDRLEN, ilen - PPP_HDRLEN, in ppp_inproc() 1571 if (hlen + PPP_HDRLEN > MHLEN) { in ppp_inproc() [all …]
|
| D | bsd-comp.c | 547 rptr += PPP_HDRLEN; in bsd_compress() 548 slen = mp->m_len - PPP_HDRLEN; in bsd_compress() 644 if (olen + PPP_HDRLEN + BSD_OVHD > maxolen) { in bsd_compress() 655 return olen + PPP_HDRLEN + BSD_OVHD; in bsd_compress() 693 rptr += PPP_HDRLEN; in bsd_incomp() 694 slen = dmsg->m_len - PPP_HDRLEN; in bsd_incomp() 818 rptr += PPP_HDRLEN; in bsd_decompress() 819 len = cmp->m_len - PPP_HDRLEN; in bsd_decompress() 857 space = M_TRAILINGSPACE(dmp) - PPP_HDRLEN + 1; in bsd_decompress() 866 wptr += PPP_HDRLEN - 1; in bsd_decompress()
|
| D | ppp_defs.h | 45 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro 57 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
|
| D | ppp_tty.c | 217 bpf_change_type(&sc->sc_if, DLT_PPP_SERIAL, PPP_HDRLEN); in pppopen() 368 if (uio->uio_resid > sc->sc_if.if_mtu + PPP_HDRLEN || in pppwrite() 369 uio->uio_resid < PPP_HDRLEN) in pppwrite() 405 bcopy(mtod(m0, u_char *), dst.sa_data, PPP_HDRLEN); in pppwrite() 406 m_adj(m0, PPP_HDRLEN); in pppwrite() 792 for (len = sc->sc_mru + PPP_HDRLEN + PPP_FCSLEN; len > 0; ){ in pppgetm() 887 if (ilen < PPP_HDRLEN + PPP_FCSLEN) { in pppinput() 1005 if (++sc->sc_ilen > sc->sc_mru + PPP_HDRLEN + PPP_FCSLEN) { in pppinput()
|
| /netbsd/src/external/bsd/ppp/dist/pppd/ |
| D | chap.c | 91 #define CHAL_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_CHALLENGE_LEN + MAXNAMELEN) 92 #define RESP_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_RESPONSE_LEN + MAXNAMELEN) 319 ss->challenge_pktlen = PPP_HDRLEN + len; in chap_generate_challenge() 321 p = ss->challenge + PPP_HDRLEN; in chap_generate_challenge() 343 if (id != ss->challenge[PPP_HDRLEN+1] || len < 2) in chap_handle_response() 379 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN, in chap_handle_response() 399 output(0, outpacket_buf, PPP_HDRLEN + len); in chap_handle_response() 510 p = response + PPP_HDRLEN; in chap_respond() 517 output(0, response, PPP_HDRLEN + len); in chap_respond()
|
| D | demand.c | 93 framemax += PPP_HDRLEN + PPP_FCSLEN; in demand_conf() 280 if (len < PPP_HDRLEN) in loop_frame() 341 if (len < PPP_HDRLEN) in active_packet()
|
| D | utils.c | 447 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) { in format_packet() 450 len -= PPP_HDRLEN; in format_packet() 740 && len >= PPP_HDRLEN + HEADERLEN) { in dump_packet() 741 unsigned char *lcp = p + PPP_HDRLEN; in dump_packet() 745 && l >= HEADERLEN && l <= len - PPP_HDRLEN) in dump_packet()
|
| D | eap.c | 302 output(esp->es_unit, outpacket_buf, EAP_HEADERLEN + PPP_HDRLEN); in eap_send_failure() 326 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + EAP_HEADERLEN); in eap_send_success() 799 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen); in eap_chapms2_send_request() 1090 outlen = (outp - outpacket_buf) - PPP_HDRLEN; in eap_send_request() 1093 output(esp->es_unit, outpacket_buf, outlen + PPP_HDRLEN); in eap_send_request() 1175 outlen = (outp - outpacket_buf) - PPP_HDRLEN; in eap_server_timeout() 1177 output(esp->es_unit, outpacket_buf, outlen + PPP_HDRLEN); in eap_server_timeout() 1334 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen); in eap_send_response() 1365 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen); in eap_chap_response() 1394 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen); in eap_srp_response() [all …]
|
| D | fsm.c | 742 outp = outpacket_buf + PPP_HDRLEN + HEADERLEN; in fsm_sconfreq() 776 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN) in fsm_sdata() 777 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen); in fsm_sdata() 783 output(f->unit, outpacket_buf, outlen + PPP_HDRLEN); in fsm_sdata()
|
| D | main.c | 191 u_char outpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for outgoing packet */ 192 u_char inpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for incoming packet */ 1165 if (len < PPP_HDRLEN) { in get_input() 1175 len -= PPP_HDRLEN; in get_input() 1220 lcp_sprotrej(0, p - PPP_HDRLEN, len + PPP_HDRLEN); in get_input()
|
| D | upap.c | 553 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN); in upap_sauthreq() 579 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN); in upap_sresp()
|
| D | tty.c | 1122 max_level = PPP_MRU + PPP_HDRLEN + 1; in charshunt() 1176 nibuf = read(ifd, ibufp, PPP_MRU + PPP_HDRLEN); in charshunt() 1200 nobuf = read(pty_master, obufp, PPP_MRU + PPP_HDRLEN); in charshunt()
|
| D | peap.c | 244 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + PEAP_HEADERLEN); in peap_ack() 274 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + peap_len); in peap_response()
|
| D | cbcp.c | 437 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN); in cbcp_send()
|
| D | ipv6cp.c | 1637 len -= PPP_HDRLEN; in ipv6_active_pkt() 1638 pkt += PPP_HDRLEN; in ipv6_active_pkt()
|
| D | eap-tls.c | 636 mtu = MIN(MIN(mtu, mru), ao->mru)- PPP_HDRLEN - 10; in eaptls_get_mtu()
|
| D | ipcp.c | 2340 len -= PPP_HDRLEN; in ip_active_pkt() 2341 pkt += PPP_HDRLEN; in ip_active_pkt()
|
| /netbsd/src/external/bsd/tcpdump/dist/ |
| D | ppp.h | 17 #define PPP_HDRLEN 4 /* length of PPP header */ macro
|
| D | print-ppp.c | 1608 if (caplen < PPP_HDRLEN) { in ppp_if_print() 1613 ndo->ndo_ll_hdr_len += PPP_HDRLEN; in ppp_if_print()
|
| /netbsd/src/external/bsd/ppp/usr.sbin/pppd/ |
| D | sys-bsd.c | 1148 if ((len = read(ttyfd, buf, PPP_MTU + PPP_HDRLEN)) < 0) { in read_packet()
|