21 import "vnet/ethernet/ethernet_types.api";
22 import "vnet/interface_types.api";
34 option vat_help =
"<intfc> [disable]";
78 autoreply define mactime_add_del_range
89 string device_name[64];
92 vl_api_time_range_t ranges[
count];
93 option vat_help =
"name <devname> mac <mac-addr> allow drop allow-range Mon - Fri 9:00 - 17:00";
125 define mactime_details
133 string device_name[64];
135 vl_api_mactime_time_range_t ranges[nranges];
141 define mactime_dump_reply
u64 data_quota
max bytes this device
int mactime_enable_disable(mactime_main_t *mm, u32 sw_if_index, int enable_disable)
Action function shared between message handler and debug CLI.
u32 client_index
client index, from api_main
u32 count
number of time ranges to follow
typedef time_range
a time range structure times are in double-precision fp seconds since 1/1/1970, which was a Thursday...
u32 context
application context
vl_api_interface_index_t sw_if_index
the interface handle
u32 client_index
client index, from api_main
u32 client_index
client index, from api_main
vl_api_mac_address_t mac_address
u32 my_table_epoch
to suppress dump if no changes
u32 context
application context
typedef mactime_time_range
a time range, in fp seconds since Sunday midnight
bool enable_disable
enable=1, disable=0
u32 context
application context
vl_api_mac_address_t mac_address
src mac address
f64 end
end of the time range
bool no_udp_10001
drop udp to port 10001
u8 allow_quota
allow subject to quota