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

Go to the source code of this file.

Data Structures

struct  cisco_slarp
 

Macros

#define SLARP_REQUEST   0
 
#define SLARP_REPLY   1
 
#define SLARP_KEEPALIVE   2
 
#define SLARP_MIN_LEN   14
 
#define SLARP_MAX_LEN   18
 

Functions

static void chdlc_slarp_print (netdissect_options *, const u_char *, u_int)
 
void chdlc_if_print (netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char *p)
 
u_int chdlc_print (netdissect_options *ndo, const u_char *p, u_int length)
 

Variables

static const struct tok chdlc_cast_values []
 

Macro Definition Documentation

◆ SLARP_KEEPALIVE

#define SLARP_KEEPALIVE   2

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

◆ SLARP_MAX_LEN

#define SLARP_MAX_LEN   18

Definition at line 135 of file print-chdlc.c.

◆ SLARP_MIN_LEN

#define SLARP_MIN_LEN   14

Definition at line 134 of file print-chdlc.c.

◆ SLARP_REPLY

#define SLARP_REPLY   1

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

◆ SLARP_REQUEST

#define SLARP_REQUEST   0

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

Function Documentation

◆ chdlc_if_print()

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

◆ chdlc_print()

◆ chdlc_slarp_print()

Variable Documentation

◆ chdlc_cast_values

const struct tok chdlc_cast_values[]
static
Initial value:
= {
{ 0x0f , "unicast" },
{ 0x8f , "bcast" },
{ 0, NULL}
}

Definition at line 37 of file print-chdlc.c.

Referenced by chdlc_print().