FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
mactime.h File Reference
+ Include dependency graph for mactime.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mactime_key_t
 
struct  mactime_main_t
 

Macros

#define MACTIME_NUM_BUCKETS   128
 
#define MACTIME_MEMORY_SIZE   (256<<10)
 
#define MACTIME_EVENT1   1
 
#define MACTIME_EVENT2   2
 
#define MACTIME_EVENT_PERIODIC_ENABLE_DISABLE   3
 

Functions

void mactime_send_create_entry_message (u8 *mac_address)
 Create a lookup table entry for the indicated mac address. More...
 
void mactime_url_init (vlib_main_t *vm)
 

Variables

mactime_main_t mactime_main
 
vlib_node_registration_t mactime_node
 (constructor) VLIB_REGISTER_NODE (mactime_node) More...
 
vlib_node_registration_t mactime_tx_node
 (constructor) VLIB_REGISTER_NODE (mactime_tx_node) More...
 

Macro Definition Documentation

◆ MACTIME_EVENT1

#define MACTIME_EVENT1   1

Definition at line 95 of file mactime.h.

◆ MACTIME_EVENT2

#define MACTIME_EVENT2   2

Definition at line 96 of file mactime.h.

◆ MACTIME_EVENT_PERIODIC_ENABLE_DISABLE

#define MACTIME_EVENT_PERIODIC_ENABLE_DISABLE   3

Definition at line 97 of file mactime.h.

◆ MACTIME_MEMORY_SIZE

#define MACTIME_MEMORY_SIZE   (256<<10)

Definition at line 84 of file mactime.h.

◆ MACTIME_NUM_BUCKETS

#define MACTIME_NUM_BUCKETS   128

Definition at line 83 of file mactime.h.

Function Documentation

◆ mactime_send_create_entry_message()

void mactime_send_create_entry_message ( u8 mac_address)

Create a lookup table entry for the indicated mac address.

Definition at line 248 of file mactime.c.

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

◆ mactime_url_init()

void mactime_url_init ( vlib_main_t vm)

Definition at line 160 of file builtins.c.

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

Variable Documentation

◆ mactime_main

mactime_main_t mactime_main

Definition at line 38 of file mactime.c.

◆ mactime_node

Initial value:
=
{
.function = mactime_node_fn,
.name = "mactime",
.vector_size = sizeof (u32),
.format_trace = format_mactime_trace,
.error_strings = mactime_error_strings,
.n_next_nodes = MACTIME_N_NEXT,
.next_nodes =
{
[MACTIME_NEXT_ETHERNET_INPUT] = "ethernet-input",
[MACTIME_NEXT_DROP] = "error-drop",
},
}
static char * mactime_error_strings[]
Definition: node.c:50
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
static uword mactime_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:347
#define ARRAY_LEN(x)
Definition: clib.h:67
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:65

(constructor) VLIB_REGISTER_NODE (mactime_node)

Definition at line 354 of file node.c.

◆ mactime_tx_node

vlib_node_registration_t mactime_tx_node
Initial value:
=
{
.function = mactime_tx_node_fn,
.name = "mactime-tx",
.vector_size = sizeof (u32),
.format_trace = format_mactime_trace,
.error_strings = mactime_error_strings,
.n_next_nodes = MACTIME_N_NEXT,
.next_nodes =
{
[MACTIME_NEXT_DROP] = "error-drop",
[MACTIME_NEXT_ETHERNET_INPUT] = "ethernet-input",
},
}
static char * mactime_error_strings[]
Definition: node.c:50
unsigned int u32
Definition: types.h:88
vl_api_fib_path_type_t type
Definition: fib_types.api:123
#define ARRAY_LEN(x)
Definition: clib.h:67
static uword mactime_tx_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:377
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:65

(constructor) VLIB_REGISTER_NODE (mactime_tx_node)

Definition at line 384 of file node.c.