18 #ifndef __included_mactime_h__ 19 #define __included_mactime_h__ 32 #define MACTIME_RANGE_TYPE_DROP 0 33 #define MACTIME_RANGE_TYPE_ALLOW 1 44 #define MACTIME_DEVICE_FLAG_STATIC_DROP (1<<0) 45 #define MACTIME_DEVICE_FLAG_STATIC_ALLOW (1<<1) 46 #define MACTIME_DEVICE_FLAG_DYNAMIC_DROP (1<<2) 47 #define MACTIME_DEVICE_FLAG_DYNAMIC_ALLOW (1<<3) 97 #define MACTIME_NUM_BUCKETS 128 98 #define MACTIME_MEMORY_SIZE (256<<10) 110 u8 *
a = va_arg (*args,
u8 *);
111 return format (s,
"%02x:%02x:%02x:%02x:%02x:%02x",
112 a[0], a[1], a[2], a[3], a[4], a[5]);
116 #define MACTIME_EVENT1 1 117 #define MACTIME_EVENT2 2 118 #define MACTIME_EVENT_PERIODIC_ENABLE_DISABLE 3 vlib_combined_counter_main_t drop_counters
vlib_node_registration_t mactime_node
(constructor) VLIB_REGISTER_NODE (mactime_node)
mactime_main_t mactime_main
clib_timebase_range_t * ranges
ethernet_main_t * ethernet_main
ethernet_arp_ip4_entry_t * arp_cache_copy
vlib_combined_counter_main_t allow_counters
u32 lookup_table_num_buckets
uword lookup_table_memory_size
Optimized thread-safe counters.
mactime_device_t * devices
static u8 * format_mac_address(u8 *s, va_list *args)
vlib_node_registration_t mactime_tx_node
(constructor) VLIB_REGISTER_NODE (mactime_tx_node)
clib_bihash_8_8_t lookup_table
struct _vlib_node_registration vlib_node_registration_t
A collection of combined counters.
void mactime_send_create_entry_message(u8 *mac_address)
Create a lookup table entry for the indicated mac address.