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

Go to the source code of this file.

Macros

#define ND_LONGJMP_FROM_TCHECK
 
#define GEONET_ADDR_LEN   8
 

Functions

static void print_btp_body (netdissect_options *ndo, const u_char *bp)
 
static void print_btp (netdissect_options *ndo, const u_char *bp)
 
static void print_long_pos_vector (netdissect_options *ndo, const u_char *bp)
 
void geonet_print (netdissect_options *ndo, const u_char *bp, u_int length, const struct lladdr_info *src)
 

Variables

static const struct tok msg_type_values []
 

Macro Definition Documentation

◆ GEONET_ADDR_LEN

#define GEONET_ADDR_LEN   8

Definition at line 43 of file print-geonet.c.

◆ ND_LONGJMP_FROM_TCHECK

#define ND_LONGJMP_FROM_TCHECK

Definition at line 26 of file print-geonet.c.

Function Documentation

◆ geonet_print()

◆ print_btp()

static void print_btp ( netdissect_options ndo,
const u_char *  bp 
)
static

Definition at line 75 of file print-geonet.c.

References GET_BE_U_2, and ND_PRINT.

Referenced by geonet_print().

◆ print_btp_body()

static void print_btp_body ( netdissect_options ndo,
const u_char *  bp 
)
static

Definition at line 60 of file print-geonet.c.

References GET_U_1, msg_type_values, ND_PRINT, and tok2str().

Referenced by geonet_print().

◆ print_long_pos_vector()

static void print_long_pos_vector ( netdissect_options ndo,
const u_char *  bp 
)
static

Definition at line 83 of file print-geonet.c.

References GEONET_ADDR_LEN, GET_BE_U_4, GET_LINKADDR_STRING, LINKADDR_OTHER, and ND_PRINT.

Referenced by geonet_print().

Variable Documentation

◆ msg_type_values

const struct tok msg_type_values[]
static
Initial value:
= {
{ 0, "CAM" },
{ 1, "DENM" },
{ 101, "TPEGM" },
{ 102, "TSPDM" },
{ 103, "VPM" },
{ 104, "SRM" },
{ 105, "SLAM" },
{ 106, "ecoCAM" },
{ 107, "ITM" },
{ 150, "SA" },
{ 0, NULL }
}

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

Referenced by print_btp_body().