Home
last modified time | relevance | path

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

/external/ppp/pppd/
Dchap-new.c92 #define CHAL_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_CHALLENGE_LEN + MAXNAMELEN)
93 #define RESP_MAX_PKTLEN (PPP_HDRLEN + CHAP_HDRLEN + 4 + MAX_RESPONSE_LEN + MAXNAMELEN)
296 ss->challenge_pktlen = PPP_HDRLEN + len; in chap_generate_challenge()
298 p = ss->challenge + PPP_HDRLEN; in chap_generate_challenge()
321 if (id != ss->challenge[PPP_HDRLEN+1] || len < 2) in chap_handle_response()
349 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN, in chap_handle_response()
369 output(0, outpacket_buf, PPP_HDRLEN + len); in chap_handle_response()
480 p = response + PPP_HDRLEN; in chap_respond()
487 output(0, response, PPP_HDRLEN + len); in chap_respond()
Ddemand.c87 framemax += PPP_HDRLEN + PPP_FCSLEN; in demand_conf()
276 if (len < PPP_HDRLEN)
340 if (len < PPP_HDRLEN)
Dutils.c483 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) {
486 len -= PPP_HDRLEN;
818 && len >= PPP_HDRLEN + HEADERLEN) { in dump_packet()
819 unsigned char *lcp = p + PPP_HDRLEN; in dump_packet()
823 && l >= HEADERLEN && l <= len - PPP_HDRLEN) in dump_packet()
Dfsm.c771 outp = outpacket_buf + PPP_HDRLEN + HEADERLEN;
809 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN)
810 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen);
816 output(f->unit, outpacket_buf, outlen + PPP_HDRLEN);
Deap.c279 output(esp->es_unit, outpacket_buf, EAP_HEADERLEN + PPP_HDRLEN);
304 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + EAP_HEADERLEN);
856 outlen = (outp - outpacket_buf) - PPP_HDRLEN;
859 output(esp->es_unit, outpacket_buf, outlen + PPP_HDRLEN);
1066 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen);
1101 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen);
1134 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen);
1165 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen);
1190 output(esp->es_unit, outpacket_buf, PPP_HDRLEN + msglen);
Dmain.c189 u_char outpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for outgoing packet */
190 u_char inpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for incoming packet */
1097 if (len < PPP_HDRLEN) { in get_input()
1107 len -= PPP_HDRLEN; in get_input()
1152 lcp_sprotrej(0, p - PPP_HDRLEN, len + PPP_HDRLEN); in get_input()
Dupap.c571 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
601 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
Dtty.c1081 max_level = PPP_MRU + PPP_HDRLEN + 1;
1135 nibuf = read(ifd, ibufp, PPP_MRU + PPP_HDRLEN);
1159 nobuf = read(pty_master, obufp, PPP_MRU + PPP_HDRLEN);
Dcbcp.c442 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
Dipv6cp.c1530 len -= PPP_HDRLEN;
1531 pkt += PPP_HDRLEN;
Dipcp.c2298 len -= PPP_HDRLEN;
2299 pkt += PPP_HDRLEN;
Dsys-linux.c1055 if (len < PPP_HDRLEN) in output()
1122 len = PPP_MRU + PPP_HDRLEN; in read_packet()
Dsys-solaris.c1457 data.maxlen = PPP_MRU + PPP_HDRLEN;
/external/ppp/pppd/include/net/
Dppp_defs.h48 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro
60 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
/external/tcpdump/
Dppp.h17 #define PPP_HDRLEN 4 /* length of PPP header */ macro
Dprint-ppp.c1571 if (caplen < PPP_HDRLEN) { in ppp_if_print()
/external/syslinux/core/lwip/src/netif/ppp/
Dppp.h129 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro
347 extern u_char outpacket_buf[NUM_PPP][PPP_MRU+PPP_HDRLEN];
Dfsm.c836 outp = outpacket_buf[f->unit] + PPP_HDRLEN + HEADERLEN; in fsm_sconfreq()
877 if (datalen && data != outp + PPP_HDRLEN + HEADERLEN) { in fsm_sdata()
878 BCOPY(data, outp + PPP_HDRLEN + HEADERLEN, datalen); in fsm_sdata()
885 pppWrite(f->unit, outpacket_buf[f->unit], outlen + PPP_HDRLEN); in fsm_sdata()
Dchap.c733 pppWrite(cstate->unit, outpacket_buf[cstate->unit], outlen + PPP_HDRLEN); in ChapSendChallenge()
768 pppWrite(cstate->unit, outpacket_buf[cstate->unit], outlen + PPP_HDRLEN); in ChapSendStatus()
834 pppWrite(cstate->unit, outpacket_buf[cstate->unit], outlen + PPP_HDRLEN); in ChapSendResponse()
Dpap.c570 pppWrite(u->us_unit, outpacket_buf[u->us_unit], outlen + PPP_HDRLEN); in upap_sauthreq()
598 pppWrite(u->us_unit, outpacket_buf[u->us_unit], outlen + PPP_HDRLEN); in upap_sresp()
Dipcp.c1388 len -= PPP_HDRLEN; in ip_active_pkt()
1389 pkt += PPP_HDRLEN; in ip_active_pkt()
Dppp.c166 #define PPPOS_RX_BUFSIZE (PPP_MRU + PPP_HDRLEN)
282 u_char outpacket_buf[NUM_PPP][PPP_MRU+PPP_HDRLEN];
/external/kernel-headers/original/uapi/linux/
Dppp_defs.h18 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro