tcpdump  4.99.1
About: tcpdump is a tool for network monitoring and data acquisition.
  Fossies Dox: tcpdump-4.99.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

print-ppp.c File Reference
#include "netdissect-stdinc.h"
#include "netdissect.h"
#include "extract.h"
#include "addrtoname.h"
#include "ppp.h"
#include "chdlc.h"
#include "ethertype.h"
#include "oui.h"
#include "netdissect-alloc.h"
Include dependency graph for print-ppp.c:

Go to the source code of this file.

Macros

#define CPCODES_VEXT   0 /* Vendor-Specific (RFC2153) */
 
#define CPCODES_CONF_REQ   1 /* Configure-Request */
 
#define CPCODES_CONF_ACK   2 /* Configure-Ack */
 
#define CPCODES_CONF_NAK   3 /* Configure-Nak */
 
#define CPCODES_CONF_REJ   4 /* Configure-Reject */
 
#define CPCODES_TERM_REQ   5 /* Terminate-Request */
 
#define CPCODES_TERM_ACK   6 /* Terminate-Ack */
 
#define CPCODES_CODE_REJ   7 /* Code-Reject */
 
#define CPCODES_PROT_REJ   8 /* Protocol-Reject (LCP only) */
 
#define CPCODES_ECHO_REQ   9 /* Echo-Request (LCP only) */
 
#define CPCODES_ECHO_RPL   10 /* Echo-Reply (LCP only) */
 
#define CPCODES_DISC_REQ   11 /* Discard-Request (LCP only) */
 
#define CPCODES_ID   12 /* Identification (LCP only) RFC1570 */
 
#define CPCODES_TIME_REM   13 /* Time-Remaining (LCP only) RFC1570 */
 
#define CPCODES_RESET_REQ   14 /* Reset-Request (CCP only) RFC1962 */
 
#define CPCODES_RESET_REP   15 /* Reset-Reply (CCP only) */
 
#define LCPOPT_VEXT   0
 
#define LCPOPT_MRU   1
 
#define LCPOPT_ACCM   2
 
#define LCPOPT_AP   3
 
#define LCPOPT_QP   4
 
#define LCPOPT_MN   5
 
#define LCPOPT_DEP6   6
 
#define LCPOPT_PFC   7
 
#define LCPOPT_ACFC   8
 
#define LCPOPT_FCSALT   9
 
#define LCPOPT_SDP   10
 
#define LCPOPT_NUMMODE   11
 
#define LCPOPT_DEP12   12
 
#define LCPOPT_CBACK   13
 
#define LCPOPT_DEP14   14
 
#define LCPOPT_DEP15   15
 
#define LCPOPT_DEP16   16
 
#define LCPOPT_MLMRRU   17
 
#define LCPOPT_MLSSNHF   18
 
#define LCPOPT_MLED   19
 
#define LCPOPT_PROP   20
 
#define LCPOPT_DCEID   21
 
#define LCPOPT_MPP   22
 
#define LCPOPT_LD   23
 
#define LCPOPT_LCPAOPT   24
 
#define LCPOPT_COBS   25
 
#define LCPOPT_PE   26
 
#define LCPOPT_MLHF   27
 
#define LCPOPT_I18N   28
 
#define LCPOPT_SDLOS   29
 
#define LCPOPT_PPPMUX   30
 
#define NUM_LCPOPTS   (sizeof(lcpconfopts) / sizeof(lcpconfopts[0]))
 
#define CCPOPT_OUI   0 /* RFC1962 */
 
#define CCPOPT_PRED1   1 /* RFC1962 */
 
#define CCPOPT_PRED2   2 /* RFC1962 */
 
#define CCPOPT_PJUMP   3 /* RFC1962 */
 
#define CCPOPT_HPPPC   16 /* RFC1962 */
 
#define CCPOPT_STACLZS   17 /* RFC1974 */
 
#define CCPOPT_MPPC   18 /* RFC2118 */
 
#define CCPOPT_GFZA   19 /* RFC1962 */
 
#define CCPOPT_V42BIS   20 /* RFC1962 */
 
#define CCPOPT_BSDCOMP   21 /* RFC1977 */
 
#define CCPOPT_LZSDCP   23 /* RFC1967 */
 
#define CCPOPT_MVRCA   24 /* RFC1975 */
 
#define CCPOPT_DEC   25 /* RFC1976 */
 
#define CCPOPT_DEFLATE   26 /* RFC1979 */
 
#define CCPOPT_RESV   255 /* RFC1962 */
 
#define BACPOPT_FPEER   1 /* RFC2125 */
 
#define IPCPOPT_2ADDR   1 /* RFC1172, RFC1332 (deprecated) */
 
#define IPCPOPT_IPCOMP   2 /* RFC1332 */
 
#define IPCPOPT_ADDR   3 /* RFC1332 */
 
#define IPCPOPT_MOBILE4   4 /* RFC2290 */
 
#define IPCPOPT_PRIDNS   129 /* RFC1877 */
 
#define IPCPOPT_PRINBNS   130 /* RFC1877 */
 
#define IPCPOPT_SECDNS   131 /* RFC1877 */
 
#define IPCPOPT_SECNBNS   132 /* RFC1877 */
 
#define IPCPOPT_IPCOMP_HDRCOMP   0x61 /* rfc3544 */
 
#define IPCPOPT_IPCOMP_MINLEN   14
 
#define IP6CP_IFID   1
 
#define AUTHALG_CHAPMD5   5 /* RFC1994 */
 
#define AUTHALG_MSCHAP1   128 /* RFC2433 */
 
#define AUTHALG_MSCHAP2   129 /* RFC2795 */
 
#define MEDCLASS_NULL   0 /* Null Class */
 
#define MEDCLASS_LOCAL   1 /* Locally Assigned */
 
#define MEDCLASS_IPV4   2 /* Internet Protocol (IPv4) */
 
#define MEDCLASS_MAC   3 /* IEEE 802.1 global MAC address */
 
#define MEDCLASS_MNB   4 /* PPP Magic Number Block */
 
#define MEDCLASS_PSNDN   5 /* Public Switched Network Director Number */
 
#define CALLBACK_AUTH   0 /* Location determined by user auth */
 
#define CALLBACK_DSTR   1 /* Dialing string */
 
#define CALLBACK_LID   2 /* Location identifier */
 
#define CALLBACK_E164   3 /* E.164 number */
 
#define CALLBACK_X500   4 /* X.500 distinguished name */
 
#define CALLBACK_CBCP   6 /* Location is determined during CBCP nego */
 
#define CHAP_CHAL   1
 
#define CHAP_RESP   2
 
#define CHAP_SUCC   3
 
#define CHAP_FAIL   4
 
#define PAP_AREQ   1
 
#define PAP_AACK   2
 
#define PAP_ANAK   3
 
#define BAP_CALLREQ   1
 
#define BAP_CALLRES   2
 
#define BAP_CBREQ   3
 
#define BAP_CBRES   4
 
#define BAP_LDQREQ   5
 
#define BAP_LDQRES   6
 
#define BAP_CSIND   7
 
#define BAP_CSRES   8
 
#define PPP_BSDI_HDRLEN   24
 

Functions

static u_int print_lcp_config_options (netdissect_options *, const u_char *p, u_int)
 
static u_int print_ipcp_config_options (netdissect_options *, const u_char *p, u_int)
 
static u_int print_ip6cp_config_options (netdissect_options *, const u_char *p, u_int)
 
static u_int print_ccp_config_options (netdissect_options *, const u_char *p, u_int)
 
static u_int print_bacp_config_options (netdissect_options *, const u_char *p, u_int)
 
static void handle_ppp (netdissect_options *, u_int proto, const u_char *p, u_int length)
 
static void handle_ctrl_proto (netdissect_options *ndo, u_int proto, const u_char *pptr, u_int length)
 
static void handle_mlppp (netdissect_options *ndo, const u_char *p, u_int length)
 
static void handle_chap (netdissect_options *ndo, const u_char *p, u_int length)
 
static void handle_pap (netdissect_options *ndo, const u_char *p, u_int length)
 
static void handle_bap (netdissect_options *ndo, const u_char *p, u_int length)
 
static void ppp_hdlc (netdissect_options *ndo, const u_char *p, u_int length)
 
u_int ppp_print (netdissect_options *ndo, const u_char *p, u_int length)
 
void ppp_if_print (netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 
void ppp_hdlc_if_print (netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 
void ppp_bsdos_if_print (netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 

Variables

static const struct tok ppptype2str []
 
static const struct tok cpcodes []
 
static const char * lcpconfopts []
 
static const struct tok ccpconfopts_values []
 
static const struct tok bacconfopts_values []
 
static const struct tok ipcpopt_values []
 
static const struct tok ipcpopt_compproto_values []
 
static const struct tok ipcpopt_compproto_subopt_values []
 
static const struct tok ip6cpopt_values []
 
static const struct tok authalg_values []
 
static const struct tok ppp_callback_values []
 
static const struct tok chapcode_values []
 
static const struct tok papcode_values []
 
static const struct tok ppp_ml_flag_values []
 

Macro Definition Documentation

◆ AUTHALG_CHAPMD5

#define AUTHALG_CHAPMD5   5 /* RFC1994 */

Definition at line 326 of file print-ppp.c.

◆ AUTHALG_MSCHAP1

#define AUTHALG_MSCHAP1   128 /* RFC2433 */

Definition at line 327 of file print-ppp.c.

◆ AUTHALG_MSCHAP2

#define AUTHALG_MSCHAP2   129 /* RFC2795 */

Definition at line 328 of file print-ppp.c.

◆ BACPOPT_FPEER

#define BACPOPT_FPEER   1 /* RFC2125 */

Definition at line 261 of file print-ppp.c.

◆ BAP_CALLREQ

#define BAP_CALLREQ   1

Definition at line 394 of file print-ppp.c.

◆ BAP_CALLRES

#define BAP_CALLRES   2

Definition at line 395 of file print-ppp.c.

◆ BAP_CBREQ

#define BAP_CBREQ   3

Definition at line 396 of file print-ppp.c.

◆ BAP_CBRES

#define BAP_CBRES   4

Definition at line 397 of file print-ppp.c.

◆ BAP_CSIND

#define BAP_CSIND   7

Definition at line 400 of file print-ppp.c.

◆ BAP_CSRES

#define BAP_CSRES   8

Definition at line 401 of file print-ppp.c.

◆ BAP_LDQREQ

#define BAP_LDQREQ   5

Definition at line 398 of file print-ppp.c.

◆ BAP_LDQRES

#define BAP_LDQRES   6

Definition at line 399 of file print-ppp.c.

◆ CALLBACK_AUTH

#define CALLBACK_AUTH   0 /* Location determined by user auth */

Definition at line 348 of file print-ppp.c.

◆ CALLBACK_CBCP

#define CALLBACK_CBCP   6 /* Location is determined during CBCP nego */

Definition at line 353 of file print-ppp.c.

◆ CALLBACK_DSTR

#define CALLBACK_DSTR   1 /* Dialing string */

Definition at line 349 of file print-ppp.c.

◆ CALLBACK_E164

#define CALLBACK_E164   3 /* E.164 number */

Definition at line 351 of file print-ppp.c.

◆ CALLBACK_LID

#define CALLBACK_LID   2 /* Location identifier */

Definition at line 350 of file print-ppp.c.

◆ CALLBACK_X500

#define CALLBACK_X500   4 /* X.500 distinguished name */

Definition at line 352 of file print-ppp.c.

◆ CCPOPT_BSDCOMP

#define CCPOPT_BSDCOMP   21 /* RFC1977 */

Definition at line 231 of file print-ppp.c.

◆ CCPOPT_DEC

#define CCPOPT_DEC   25 /* RFC1976 */

Definition at line 235 of file print-ppp.c.

◆ CCPOPT_DEFLATE

#define CCPOPT_DEFLATE   26 /* RFC1979 */

Definition at line 236 of file print-ppp.c.

◆ CCPOPT_GFZA

#define CCPOPT_GFZA   19 /* RFC1962 */

Definition at line 229 of file print-ppp.c.

◆ CCPOPT_HPPPC

#define CCPOPT_HPPPC   16 /* RFC1962 */

Definition at line 226 of file print-ppp.c.

◆ CCPOPT_LZSDCP

#define CCPOPT_LZSDCP   23 /* RFC1967 */

Definition at line 233 of file print-ppp.c.

◆ CCPOPT_MPPC

#define CCPOPT_MPPC   18 /* RFC2118 */

Definition at line 228 of file print-ppp.c.

◆ CCPOPT_MVRCA

#define CCPOPT_MVRCA   24 /* RFC1975 */

Definition at line 234 of file print-ppp.c.

◆ CCPOPT_OUI

#define CCPOPT_OUI   0 /* RFC1962 */

Definition at line 221 of file print-ppp.c.

◆ CCPOPT_PJUMP

#define CCPOPT_PJUMP   3 /* RFC1962 */

Definition at line 224 of file print-ppp.c.

◆ CCPOPT_PRED1

#define CCPOPT_PRED1   1 /* RFC1962 */

Definition at line 222 of file print-ppp.c.

◆ CCPOPT_PRED2

#define CCPOPT_PRED2   2 /* RFC1962 */

Definition at line 223 of file print-ppp.c.

◆ CCPOPT_RESV

#define CCPOPT_RESV   255 /* RFC1962 */

Definition at line 238 of file print-ppp.c.

◆ CCPOPT_STACLZS

#define CCPOPT_STACLZS   17 /* RFC1974 */

Definition at line 227 of file print-ppp.c.

◆ CCPOPT_V42BIS

#define CCPOPT_V42BIS   20 /* RFC1962 */

Definition at line 230 of file print-ppp.c.

◆ CHAP_CHAL

#define CHAP_CHAL   1

Definition at line 367 of file print-ppp.c.

◆ CHAP_FAIL

#define CHAP_FAIL   4

Definition at line 370 of file print-ppp.c.

◆ CHAP_RESP

#define CHAP_RESP   2

Definition at line 368 of file print-ppp.c.

◆ CHAP_SUCC

#define CHAP_SUCC   3

Definition at line 369 of file print-ppp.c.

◆ CPCODES_CODE_REJ

#define CPCODES_CODE_REJ   7 /* Code-Reject */

Definition at line 117 of file print-ppp.c.

◆ CPCODES_CONF_ACK

#define CPCODES_CONF_ACK   2 /* Configure-Ack */

Definition at line 112 of file print-ppp.c.

◆ CPCODES_CONF_NAK

#define CPCODES_CONF_NAK   3 /* Configure-Nak */

Definition at line 113 of file print-ppp.c.

◆ CPCODES_CONF_REJ

#define CPCODES_CONF_REJ   4 /* Configure-Reject */

Definition at line 114 of file print-ppp.c.

◆ CPCODES_CONF_REQ

#define CPCODES_CONF_REQ   1 /* Configure-Request */

Definition at line 111 of file print-ppp.c.

◆ CPCODES_DISC_REQ

#define CPCODES_DISC_REQ   11 /* Discard-Request (LCP only) */

Definition at line 121 of file print-ppp.c.

◆ CPCODES_ECHO_REQ

#define CPCODES_ECHO_REQ   9 /* Echo-Request (LCP only) */

Definition at line 119 of file print-ppp.c.

◆ CPCODES_ECHO_RPL

#define CPCODES_ECHO_RPL   10 /* Echo-Reply (LCP only) */

Definition at line 120 of file print-ppp.c.

◆ CPCODES_ID

#define CPCODES_ID   12 /* Identification (LCP only) RFC1570 */

Definition at line 122 of file print-ppp.c.

◆ CPCODES_PROT_REJ

#define CPCODES_PROT_REJ   8 /* Protocol-Reject (LCP only) */

Definition at line 118 of file print-ppp.c.

◆ CPCODES_RESET_REP

#define CPCODES_RESET_REP   15 /* Reset-Reply (CCP only) */

Definition at line 125 of file print-ppp.c.

◆ CPCODES_RESET_REQ

#define CPCODES_RESET_REQ   14 /* Reset-Request (CCP only) RFC1962 */

Definition at line 124 of file print-ppp.c.

◆ CPCODES_TERM_ACK

#define CPCODES_TERM_ACK   6 /* Terminate-Ack */

Definition at line 116 of file print-ppp.c.

◆ CPCODES_TERM_REQ

#define CPCODES_TERM_REQ   5 /* Terminate-Request */

Definition at line 115 of file print-ppp.c.

◆ CPCODES_TIME_REM

#define CPCODES_TIME_REM   13 /* Time-Remaining (LCP only) RFC1570 */

Definition at line 123 of file print-ppp.c.

◆ CPCODES_VEXT

#define CPCODES_VEXT   0 /* Vendor-Specific (RFC2153) */

Definition at line 110 of file print-ppp.c.

◆ IP6CP_IFID

#define IP6CP_IFID   1

Definition at line 309 of file print-ppp.c.

◆ IPCPOPT_2ADDR

#define IPCPOPT_2ADDR   1 /* RFC1172, RFC1332 (deprecated) */

Definition at line 272 of file print-ppp.c.

◆ IPCPOPT_ADDR

#define IPCPOPT_ADDR   3 /* RFC1332 */

Definition at line 274 of file print-ppp.c.

◆ IPCPOPT_IPCOMP

#define IPCPOPT_IPCOMP   2 /* RFC1332 */

Definition at line 273 of file print-ppp.c.

◆ IPCPOPT_IPCOMP_HDRCOMP

#define IPCPOPT_IPCOMP_HDRCOMP   0x61 /* rfc3544 */

Definition at line 293 of file print-ppp.c.

◆ IPCPOPT_IPCOMP_MINLEN

#define IPCPOPT_IPCOMP_MINLEN   14

Definition at line 294 of file print-ppp.c.

◆ IPCPOPT_MOBILE4

#define IPCPOPT_MOBILE4   4 /* RFC2290 */

Definition at line 275 of file print-ppp.c.

◆ IPCPOPT_PRIDNS

#define IPCPOPT_PRIDNS   129 /* RFC1877 */

Definition at line 276 of file print-ppp.c.

◆ IPCPOPT_PRINBNS

#define IPCPOPT_PRINBNS   130 /* RFC1877 */

Definition at line 277 of file print-ppp.c.

◆ IPCPOPT_SECDNS

#define IPCPOPT_SECDNS   131 /* RFC1877 */

Definition at line 278 of file print-ppp.c.

◆ IPCPOPT_SECNBNS

#define IPCPOPT_SECNBNS   132 /* RFC1877 */

Definition at line 279 of file print-ppp.c.

◆ LCPOPT_ACCM

#define LCPOPT_ACCM   2

Definition at line 151 of file print-ppp.c.

◆ LCPOPT_ACFC

#define LCPOPT_ACFC   8

Definition at line 157 of file print-ppp.c.

◆ LCPOPT_AP

#define LCPOPT_AP   3

Definition at line 152 of file print-ppp.c.

◆ LCPOPT_CBACK

#define LCPOPT_CBACK   13

Definition at line 162 of file print-ppp.c.

◆ LCPOPT_COBS

#define LCPOPT_COBS   25

Definition at line 174 of file print-ppp.c.

◆ LCPOPT_DCEID

#define LCPOPT_DCEID   21

Definition at line 170 of file print-ppp.c.

◆ LCPOPT_DEP12

#define LCPOPT_DEP12   12

Definition at line 161 of file print-ppp.c.

◆ LCPOPT_DEP14

#define LCPOPT_DEP14   14

Definition at line 163 of file print-ppp.c.

◆ LCPOPT_DEP15

#define LCPOPT_DEP15   15

Definition at line 164 of file print-ppp.c.

◆ LCPOPT_DEP16

#define LCPOPT_DEP16   16

Definition at line 165 of file print-ppp.c.

◆ LCPOPT_DEP6

#define LCPOPT_DEP6   6

Definition at line 155 of file print-ppp.c.

◆ LCPOPT_FCSALT

#define LCPOPT_FCSALT   9

Definition at line 158 of file print-ppp.c.

◆ LCPOPT_I18N

#define LCPOPT_I18N   28

Definition at line 177 of file print-ppp.c.

◆ LCPOPT_LCPAOPT

#define LCPOPT_LCPAOPT   24

Definition at line 173 of file print-ppp.c.

◆ LCPOPT_LD

#define LCPOPT_LD   23

Definition at line 172 of file print-ppp.c.

◆ LCPOPT_MLED

#define LCPOPT_MLED   19

Definition at line 168 of file print-ppp.c.

◆ LCPOPT_MLHF

#define LCPOPT_MLHF   27

Definition at line 176 of file print-ppp.c.

◆ LCPOPT_MLMRRU

#define LCPOPT_MLMRRU   17

Definition at line 166 of file print-ppp.c.

◆ LCPOPT_MLSSNHF

#define LCPOPT_MLSSNHF   18

Definition at line 167 of file print-ppp.c.

◆ LCPOPT_MN

#define LCPOPT_MN   5

Definition at line 154 of file print-ppp.c.

◆ LCPOPT_MPP

#define LCPOPT_MPP   22

Definition at line 171 of file print-ppp.c.

◆ LCPOPT_MRU

#define LCPOPT_MRU   1

Definition at line 150 of file print-ppp.c.

◆ LCPOPT_NUMMODE

#define LCPOPT_NUMMODE   11

Definition at line 160 of file print-ppp.c.

◆ LCPOPT_PE

#define LCPOPT_PE   26

Definition at line 175 of file print-ppp.c.

◆ LCPOPT_PFC

#define LCPOPT_PFC   7

Definition at line 156 of file print-ppp.c.

◆ LCPOPT_PPPMUX

#define LCPOPT_PPPMUX   30

Definition at line 179 of file print-ppp.c.

◆ LCPOPT_PROP

#define LCPOPT_PROP   20

Definition at line 169 of file print-ppp.c.

◆ LCPOPT_QP

#define LCPOPT_QP   4

Definition at line 153 of file print-ppp.c.

◆ LCPOPT_SDLOS

#define LCPOPT_SDLOS   29

Definition at line 178 of file print-ppp.c.

◆ LCPOPT_SDP

#define LCPOPT_SDP   10

Definition at line 159 of file print-ppp.c.

◆ LCPOPT_VEXT

#define LCPOPT_VEXT   0

Definition at line 149 of file print-ppp.c.

◆ MEDCLASS_IPV4

#define MEDCLASS_IPV4   2 /* Internet Protocol (IPv4) */

Definition at line 342 of file print-ppp.c.

◆ MEDCLASS_LOCAL

#define MEDCLASS_LOCAL   1 /* Locally Assigned */

Definition at line 341 of file print-ppp.c.

◆ MEDCLASS_MAC

#define MEDCLASS_MAC   3 /* IEEE 802.1 global MAC address */

Definition at line 343 of file print-ppp.c.

◆ MEDCLASS_MNB

#define MEDCLASS_MNB   4 /* PPP Magic Number Block */

Definition at line 344 of file print-ppp.c.

◆ MEDCLASS_NULL

#define MEDCLASS_NULL   0 /* Null Class */

Definition at line 340 of file print-ppp.c.

◆ MEDCLASS_PSNDN

#define MEDCLASS_PSNDN   5 /* Public Switched Network Director Number */

Definition at line 345 of file print-ppp.c.

◆ NUM_LCPOPTS

#define NUM_LCPOPTS   (sizeof(lcpconfopts) / sizeof(lcpconfopts[0]))

Definition at line 215 of file print-ppp.c.

◆ PAP_AACK

#define PAP_AACK   2

Definition at line 383 of file print-ppp.c.

◆ PAP_ANAK

#define PAP_ANAK   3

Definition at line 384 of file print-ppp.c.

◆ PAP_AREQ

#define PAP_AREQ   1

Definition at line 382 of file print-ppp.c.

◆ PPP_BSDI_HDRLEN

#define PPP_BSDI_HDRLEN   24

Definition at line 1718 of file print-ppp.c.

Function Documentation

◆ handle_bap()

static void handle_bap ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

Definition at line 997 of file print-ppp.c.

Referenced by handle_ppp().

◆ handle_chap()

static void handle_chap ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

◆ handle_ctrl_proto()

◆ handle_mlppp()

static void handle_mlppp ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

◆ handle_pap()

static void handle_pap ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

Definition at line 899 of file print-ppp.c.

References code, fn_print_char(), GET_BE_U_2, GET_U_1, ND_PRINT, PAP_AACK, PAP_ANAK, PAP_AREQ, papcode_values, and tok2str().

Referenced by handle_ppp().

◆ handle_ppp()

◆ ppp_bsdos_if_print()

◆ ppp_hdlc()

static void ppp_hdlc ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

◆ ppp_hdlc_if_print()

◆ ppp_if_print()

void ppp_if_print ( netdissect_options ndo,
const struct pcap_pkthdr *  h,
const u_char *  p 
)

◆ ppp_print()

◆ print_bacp_config_options()

static u_int print_bacp_config_options ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

◆ print_ccp_config_options()

◆ print_ip6cp_config_options()

static u_int print_ip6cp_config_options ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

◆ print_ipcp_config_options()

◆ print_lcp_config_options()

static u_int print_lcp_config_options ( netdissect_options ndo,
const u_char *  p,
u_int  length 
)
static

Definition at line 590 of file print-ppp.c.

Referenced by handle_ctrl_proto().

Variable Documentation

◆ authalg_values

const struct tok authalg_values[]
static
Initial value:
= {
{ 5 , "MD5" },
{ 128 , "MS-CHAPv1" },
{ 129 , "MS-CHAPv2" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

◆ bacconfopts_values

const struct tok bacconfopts_values[]
static
Initial value:
= {
{ 1 , "Favored-Peer" },
{0, NULL}
}

Definition at line 181 of file print-ppp.c.

Referenced by print_bacp_config_options().

◆ ccpconfopts_values

const struct tok ccpconfopts_values[]
static
Initial value:
= {
{ 0 , "OUI" },
{ 1 , "Pred-1" },
{ 2 , "Pred-2" },
{ 3 , "Puddle" },
{ 16 , "HP-PPC" },
{ 17 , "Stac-LZS" },
{ 18 , "MPPC" },
{ 19 , "Gand-FZA" },
{ 20 , "V.42bis" },
{ 21 , "BSD-Comp" },
{ 23 , "LZS-DCP" },
{ 24 , "MVRCA" },
{ 25 , "DEC" },
{ 26 , "Deflate" },
{ 255 , "Reserved"},
{0, NULL}
}

Definition at line 181 of file print-ppp.c.

Referenced by print_ccp_config_options().

◆ chapcode_values

const struct tok chapcode_values[]
static
Initial value:
= {
{ 1 , "Challenge" },
{ 2 , "Response" },
{ 3 , "Success" },
{ 4 , "Fail" },
{ 0, NULL}
}

Definition at line 181 of file print-ppp.c.

Referenced by handle_chap().

◆ cpcodes

const struct tok cpcodes[]
static
Initial value:
= {
{ 0 , "Vendor-Extension"},
{ 1 , "Conf-Request"},
{ 2 , "Conf-Ack"},
{ 3 , "Conf-Nack"},
{ 4 , "Conf-Reject"},
{ 5 , "Term-Request"},
{ 6 , "Term-Ack"},
{ 7 , "Code-Reject"},
{ 8 , "Prot-Reject"},
{ 9 , "Echo-Request"},
{ 10 , "Echo-Reply"},
{ 11 , "Disc-Req"},
{ 12 , "Ident"},
{ 13 , "Time-Rem"},
{ 14 , "Reset-Req"},
{ 15 , "Reset-Ack"},
{0, NULL}
}

Definition at line 1 of file print-ppp.c.

Referenced by handle_ctrl_proto().

◆ ip6cpopt_values

const struct tok ip6cpopt_values[]
static
Initial value:
= {
{ 1 , "Interface-ID" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

Referenced by print_ip6cp_config_options().

◆ ipcpopt_compproto_subopt_values

const struct tok ipcpopt_compproto_subopt_values[]
static
Initial value:
= {
{ 1, "RTP-Compression" },
{ 2, "Enhanced RTP-Compression" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

Referenced by print_ipcp_config_options().

◆ ipcpopt_compproto_values

const struct tok ipcpopt_compproto_values[]
static
Initial value:
= {
{ 0x002d , "VJ-Comp" },
{ 0x61 , "IP Header Compression" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

Referenced by print_ipcp_config_options().

◆ ipcpopt_values

const struct tok ipcpopt_values[]
static
Initial value:
= {
{ 1 , "IP-Addrs" },
{ 2 , "IP-Comp" },
{ 3 , "IP-Addr" },
{ 4 , "Home-Addr" },
{ 129 , "Pri-DNS" },
{ 130 , "Pri-NBNS" },
{ 131 , "Sec-DNS" },
{ 132 , "Sec-NBNS" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

Referenced by print_ipcp_config_options().

◆ lcpconfopts

const char* lcpconfopts[]
static

Definition at line 181 of file print-ppp.c.

◆ papcode_values

const struct tok papcode_values[]
static
Initial value:
= {
{ 1 , "Auth-Req" },
{ 2 , "Auth-ACK" },
{ 3 , "Auth-NACK" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

Referenced by handle_pap().

◆ ppp_callback_values

const struct tok ppp_callback_values[]
static
Initial value:
= {
{ 0 , "UserAuth" },
{ 1 , "DialString" },
{ 2 , "LocalID" },
{ 3 , "E.164" },
{ 4 , "X.500" },
{ 6 , "CBCP" },
{ 0, NULL }
}

Definition at line 181 of file print-ppp.c.

◆ ppp_ml_flag_values

const struct tok ppp_ml_flag_values[]
static
Initial value:
= {
{ 0x80, "begin" },
{ 0x40, "end" },
{ 0, NULL }
}

Definition at line 590 of file print-ppp.c.

Referenced by handle_mlppp().

◆ ppptype2str

const struct tok ppptype2str[]
static