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-pppoe.c File Reference
#include "netdissect-stdinc.h"
#include "netdissect-ctype.h"
#include "netdissect.h"
#include "extract.h"
Include dependency graph for print-pppoe.c:

Go to the source code of this file.

Macros

#define ND_LONGJMP_FROM_TCHECK
 
#define PPPOE_HDRLEN   6
 
#define MAXTAGPRINT   80
 

Enumerations

enum  {
  PPPOE_PADI = 0x09 , PPPOE_PADO = 0x07 , PPPOE_PADR = 0x19 , PPPOE_PADS = 0x65 ,
  PPPOE_PADT = 0xa7
}
 
enum  {
  PPPOE_EOL = 0 , PPPOE_SERVICE_NAME = 0x0101 , PPPOE_AC_NAME = 0x0102 , PPPOE_HOST_UNIQ = 0x0103 ,
  PPPOE_AC_COOKIE = 0x0104 , PPPOE_VENDOR = 0x0105 , PPPOE_RELAY_SID = 0x0110 , PPPOE_MAX_PAYLOAD = 0x0120 ,
  PPPOE_SERVICE_NAME_ERROR = 0x0201 , PPPOE_AC_SYSTEM_ERROR = 0x0202 , PPPOE_GENERIC_ERROR = 0x0203
}
 

Functions

void pppoe_if_print (netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 
u_int pppoe_print (netdissect_options *ndo, const u_char *bp, u_int length)
 

Variables

static const struct tok pppoecode2str []
 
static const struct tok pppoetag2str []
 

Macro Definition Documentation

◆ MAXTAGPRINT

#define MAXTAGPRINT   80

Definition at line 88 of file print-pppoe.c.

◆ ND_LONGJMP_FROM_TCHECK

#define ND_LONGJMP_FROM_TCHECK

Definition at line 34 of file print-pppoe.c.

◆ PPPOE_HDRLEN

#define PPPOE_HDRLEN   6

Definition at line 87 of file print-pppoe.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
PPPOE_PADI 
PPPOE_PADO 
PPPOE_PADR 
PPPOE_PADS 
PPPOE_PADT 

Definition at line 39 of file print-pppoe.c.

◆ anonymous enum

anonymous enum
Enumerator
PPPOE_EOL 
PPPOE_SERVICE_NAME 
PPPOE_AC_NAME 
PPPOE_HOST_UNIQ 
PPPOE_AC_COOKIE 
PPPOE_VENDOR 
PPPOE_RELAY_SID 
PPPOE_MAX_PAYLOAD 
PPPOE_SERVICE_NAME_ERROR 
PPPOE_AC_SYSTEM_ERROR 
PPPOE_GENERIC_ERROR 

Definition at line 58 of file print-pppoe.c.

Function Documentation

◆ pppoe_if_print()

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

◆ pppoe_print()

Variable Documentation

◆ pppoecode2str

const struct tok pppoecode2str[]
static
Initial value:
= {
{ PPPOE_PADI, "PADI" },
{ PPPOE_PADO, "PADO" },
{ PPPOE_PADR, "PADR" },
{ PPPOE_PADS, "PADS" },
{ PPPOE_PADT, "PADT" },
{ 0, "" },
{ 0, NULL }
}
@ PPPOE_PADO
Definition: print-pppoe.c:41
@ PPPOE_PADI
Definition: print-pppoe.c:40
@ PPPOE_PADT
Definition: print-pppoe.c:44
@ PPPOE_PADS
Definition: print-pppoe.c:43
@ PPPOE_PADR
Definition: print-pppoe.c:42

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

Referenced by pppoe_print().

◆ pppoetag2str

const struct tok pppoetag2str[]
static
Initial value:
= {
{ PPPOE_EOL, "EOL" },
{ PPPOE_SERVICE_NAME, "Service-Name" },
{ PPPOE_AC_NAME, "AC-Name" },
{ PPPOE_HOST_UNIQ, "Host-Uniq" },
{ PPPOE_AC_COOKIE, "AC-Cookie" },
{ PPPOE_VENDOR, "Vendor-Specific" },
{ PPPOE_RELAY_SID, "Relay-Session-ID" },
{ PPPOE_MAX_PAYLOAD, "PPP-Max-Payload" },
{ PPPOE_SERVICE_NAME_ERROR, "Service-Name-Error" },
{ PPPOE_AC_SYSTEM_ERROR, "AC-System-Error" },
{ PPPOE_GENERIC_ERROR, "Generic-Error" },
{ 0, NULL }
}
@ PPPOE_HOST_UNIQ
Definition: print-pppoe.c:62
@ PPPOE_AC_COOKIE
Definition: print-pppoe.c:63
@ PPPOE_SERVICE_NAME_ERROR
Definition: print-pppoe.c:67
@ PPPOE_MAX_PAYLOAD
Definition: print-pppoe.c:66
@ PPPOE_AC_SYSTEM_ERROR
Definition: print-pppoe.c:68
@ PPPOE_RELAY_SID
Definition: print-pppoe.c:65
@ PPPOE_EOL
Definition: print-pppoe.c:59
@ PPPOE_AC_NAME
Definition: print-pppoe.c:61
@ PPPOE_SERVICE_NAME
Definition: print-pppoe.c:60
@ PPPOE_VENDOR
Definition: print-pppoe.c:64
@ PPPOE_GENERIC_ERROR
Definition: print-pppoe.c:69

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

Referenced by pppoe_print().