FD.io VPP  v18.10-32-g1161dda
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_device_t
 
struct  mactime_key_t
 
struct  mactime_main_t
 

Macros

#define MACTIME_RANGE_TYPE_DROP   0
 
#define MACTIME_RANGE_TYPE_ALLOW   1
 
#define MACTIME_DEVICE_FLAG_STATIC_DROP   (1<<0)
 Always drop packets from this device. More...
 
#define MACTIME_DEVICE_FLAG_STATIC_ALLOW   (1<<1)
 
#define MACTIME_DEVICE_FLAG_DYNAMIC_DROP   (1<<2)
 
#define MACTIME_DEVICE_FLAG_DYNAMIC_ALLOW   (1<<3)
 
#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...
 

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

#define MACTIME_DEVICE_FLAG_DYNAMIC_ALLOW   (1<<3)

Definition at line 47 of file mactime.h.

#define MACTIME_DEVICE_FLAG_DYNAMIC_DROP   (1<<2)

Definition at line 46 of file mactime.h.

#define MACTIME_DEVICE_FLAG_STATIC_ALLOW   (1<<1)

Definition at line 45 of file mactime.h.

#define MACTIME_DEVICE_FLAG_STATIC_DROP   (1<<0)

Always drop packets from this device.

Definition at line 44 of file mactime.h.

#define MACTIME_EVENT1   1

Definition at line 108 of file mactime.h.

#define MACTIME_EVENT2   2

Definition at line 109 of file mactime.h.

#define MACTIME_EVENT_PERIODIC_ENABLE_DISABLE   3

Definition at line 110 of file mactime.h.

#define MACTIME_MEMORY_SIZE   (256<<10)

Definition at line 98 of file mactime.h.

#define MACTIME_NUM_BUCKETS   128

Definition at line 97 of file mactime.h.

#define MACTIME_RANGE_TYPE_ALLOW   1

Definition at line 33 of file mactime.h.

#define MACTIME_RANGE_TYPE_DROP   0

Definition at line 32 of file mactime.h.

Function Documentation

void mactime_send_create_entry_message ( u8 mac_address)

Create a lookup table entry for the indicated mac address.

Definition at line 191 of file mactime.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

mactime_main_t mactime_main

Definition at line 53 of file mactime.c.

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:46
unsigned int u32
Definition: types.h:88
#define ARRAY_LEN(x)
Definition: clib.h:61
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:61
static uword mactime_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:275

(constructor) VLIB_REGISTER_NODE (mactime_node)

Definition at line 282 of file node.c.

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:46
unsigned int u32
Definition: types.h:88
static uword mactime_tx_node_fn(vlib_main_t *vm, vlib_node_runtime_t *node, vlib_frame_t *frame)
Definition: node.c:305
#define ARRAY_LEN(x)
Definition: clib.h:61
static u8 * format_mactime_trace(u8 *s, va_list *args)
Definition: node.c:61

(constructor) VLIB_REGISTER_NODE (mactime_tx_node)

Definition at line 312 of file node.c.