FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
mactime_top.c File Reference
+ Include dependency graph for mactime_top.c:

Go to the source code of this file.

Data Structures

struct  mt_main_t
 

Macros

#define foreach_mactime_api_msg
 
#define vl_print(handle, ...)   fformat(handle, __VA_ARGS__)
 
#define vl_endianfun   /* define message structures */
 
#define vl_printfun
 
#define vl_api_version(n, v)   static u32 api_version = v;
 

Functions

u32 vl (void *x)
 
static void vl_api_mactime_dump_reply_t_handler (vl_api_mactime_dump_reply_t *mp)
 
static void vl_api_mactime_details_t_handler (vl_api_mactime_details_t *mp)
 
static int connect_to_vpp (char *name)
 
static void dump_mactime_table (mt_main_t *mm)
 
static void scrape_stats_segment (mt_main_t *mm)
 
static u8format_mac_address (u8 *s, va_list *args)
 
static u8format_bytes_with_width (u8 *s, va_list *va)
 
static u8format_device (u8 *s, va_list *args)
 
static void print_device_table (mt_main_t *mm)
 
int main (int argc, char **argv)
 

Variables

mt_main_t mt_main
 

Macro Definition Documentation

◆ foreach_mactime_api_msg

#define foreach_mactime_api_msg
Value:
_(MACTIME_DUMP_REPLY, mactime_dump_reply) \
_(MACTIME_DETAILS, mactime_details)

Definition at line 55 of file mactime_top.c.

◆ vl_api_version

#define vl_api_version (   n,
 
)    static u32 api_version = v;

Definition at line 119 of file mactime_top.c.

◆ vl_endianfun

#define vl_endianfun   /* define message structures */

Definition at line 110 of file mactime_top.c.

◆ vl_print

#define vl_print (   handle,
  ... 
)    fformat(handle, __VA_ARGS__)

Definition at line 109 of file mactime_top.c.

◆ vl_printfun

#define vl_printfun

Definition at line 115 of file mactime_top.c.

Function Documentation

◆ connect_to_vpp()

static int connect_to_vpp ( char *  name)
static

Definition at line 124 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dump_mactime_table()

static void dump_mactime_table ( mt_main_t mm)
static

Definition at line 161 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_bytes_with_width()

static u8* format_bytes_with_width ( u8 s,
va_list *  va 
)
static

Definition at line 287 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_device()

static u8* format_device ( u8 s,
va_list *  args 
)
static

Definition at line 327 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ format_mac_address()

static u8* format_mac_address ( u8 s,
va_list *  args 
)
static

Definition at line 278 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 456 of file mactime_top.c.

+ Here is the call graph for this function:

◆ print_device_table()

static void print_device_table ( mt_main_t mm)
static

Definition at line 442 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ scrape_stats_segment()

static void scrape_stats_segment ( mt_main_t mm)
static

Definition at line 185 of file mactime_top.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vl()

u32 vl ( void *  x)

Definition at line 50 of file mactime_top.c.

◆ vl_api_mactime_details_t_handler()

static void vl_api_mactime_details_t_handler ( vl_api_mactime_details_t mp)
static

Definition at line 70 of file mactime_top.c.

+ Here is the call graph for this function:

◆ vl_api_mactime_dump_reply_t_handler()

static void vl_api_mactime_dump_reply_t_handler ( vl_api_mactime_dump_reply_t mp)
static

Definition at line 60 of file mactime_top.c.

Variable Documentation

◆ mt_main

mt_main_t mt_main

Definition at line 45 of file mactime_top.c.