FD.io VPP  v20.01-48-g3e0dafb74
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 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 56 of file mactime_top.c.

◆ vl_api_version

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

Definition at line 114 of file mactime_top.c.

◆ vl_endianfun

#define vl_endianfun

Definition at line 112 of file mactime_top.c.

◆ vl_print

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

Definition at line 110 of file mactime_top.c.

◆ vl_printfun

#define vl_printfun

Definition at line 113 of file mactime_top.c.

Function Documentation

◆ connect_to_vpp()

static int connect_to_vpp ( char *  name)
static

Definition at line 121 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 158 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 289 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 329 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 280 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 458 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 444 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 182 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 51 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 71 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 61 of file mactime_top.c.

Variable Documentation

◆ mt_main

mt_main_t mt_main

Definition at line 46 of file mactime_top.c.