Searched refs:PPP_HDRLEN (Results 1 – 16 of 16) sorted by relevance
/external/ppp/pppd/ |
D | chap-new.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) 297 ss->challenge_pktlen = PPP_HDRLEN + len; in chap_generate_challenge() 299 p = ss->challenge + PPP_HDRLEN; in chap_generate_challenge() 323 if (id != ss->challenge[PPP_HDRLEN+1] || len < 2) in chap_handle_response() 354 ss->challenge + PPP_HDRLEN + CHAP_HDRLEN, in chap_handle_response() 373 output(0, outpacket_buf, PPP_HDRLEN + len); in chap_handle_response() 465 p = response + PPP_HDRLEN; in chap_respond() 472 output(0, response, PPP_HDRLEN + len); in chap_respond()
|
D | demand.c | 87 framemax += PPP_HDRLEN + PPP_FCSLEN; in demand_conf() 276 if (len < PPP_HDRLEN) 340 if (len < PPP_HDRLEN)
|
D | utils.c | 490 if (len >= PPP_HDRLEN && p[0] == PPP_ALLSTATIONS && p[1] == PPP_UI) { 493 len -= PPP_HDRLEN; 852 && len >= PPP_HDRLEN + HEADERLEN) { in dump_packet() 853 unsigned char *lcp = p + PPP_HDRLEN; in dump_packet() 857 && l >= HEADERLEN && l <= len - PPP_HDRLEN) in dump_packet()
|
D | fsm.c | 771 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);
|
D | main.c | 190 u_char outpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for outgoing packet */ 191 u_char inpacket_buf[PPP_MRU+PPP_HDRLEN]; /* buffer for incoming packet */ 1010 if (len < PPP_HDRLEN) { in get_input() 1020 len -= PPP_HDRLEN; in get_input() 1065 lcp_sprotrej(0, p - PPP_HDRLEN, len + PPP_HDRLEN); in get_input()
|
D | eap.c | 279 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);
|
D | upap.c | 572 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN); 602 output(u->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
D | tty.c | 1078 max_level = PPP_MRU + PPP_HDRLEN + 1; 1132 nibuf = read(ifd, ibufp, PPP_MRU + PPP_HDRLEN); 1156 nobuf = read(pty_master, obufp, PPP_MRU + PPP_HDRLEN);
|
D | cbcp.c | 442 output(us->us_unit, outpacket_buf, outlen + PPP_HDRLEN);
|
D | ipv6cp.c | 1547 len -= PPP_HDRLEN; 1548 pkt += PPP_HDRLEN;
|
D | ipcp.c | 2181 len -= PPP_HDRLEN; 2182 pkt += PPP_HDRLEN;
|
D | sys-linux.c | 1021 if (len < PPP_HDRLEN) in output() 1088 len = PPP_MRU + PPP_HDRLEN; in read_packet()
|
D | sys-solaris.c | 1454 data.maxlen = PPP_MRU + PPP_HDRLEN;
|
/external/ppp/pppd/include/net/ |
D | ppp_defs.h | 44 #define PPP_HDRLEN 4 /* octets for standard ppp header */ macro 56 #define PPP_MAXMTU 65535 - (PPP_HDRLEN + PPP_FCSLEN)
|
/external/tcpdump/ |
D | ppp.h | 18 #define PPP_HDRLEN 4 /* length of PPP header */ macro
|
D | print-ppp.c | 1472 if (caplen < PPP_HDRLEN) { in ppp_if_print()
|