38 else if (
unformat (input,
"udp-port %d", &tmp))
46 if (collector_set == 0)
59 if (lm->
ports[i] == udp_port)
61 (0,
"collector %U:%d already configured",
62 &collector, udp_port);
65 (0,
"collector %U already configured with port %d",
66 &collector, (
int)(lm->
ports[i]));
79 && lm->
ports[
i] == udp_port)
88 &collector, udp_port);
96 "set li src <ip4-address> collector <ip4-address> udp-port <nnnn>",
sll srl srl sll sra u16x4 i
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
vnet_main_t * vnet_get_main(void)
#define VLIB_INIT_FUNCTION(x)
vlib_node_registration_t li_hit_node
(constructor) VLIB_REGISTER_NODE (li_hit_node)
#define VLIB_CLI_COMMAND(x,...)
#define vec_delete(V, N, M)
Delete N elements starting at element M.
ip4_address_t * src_addrs
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
static clib_error_t * set_li_command_fn(vlib_main_t *vm, unformat_input_t *input, vlib_cli_command_t *cmd)
static clib_error_t * li_init(vlib_main_t *vm)
#define clib_error_return(e, args...)
ip4_address_t * collectors