40 else if (
unformat (input,
"udp-port %d", &tmp))
48 if (collector_set == 0)
61 if (lm->
ports[i] == udp_port)
63 (0,
"collector %U:%d already configured",
64 &collector, udp_port);
67 (0,
"collector %U already configured with port %d",
68 &collector, (
int) (lm->
ports[i]));
81 && lm->
ports[
i] == udp_port)
90 &collector, udp_port);
99 "set li src <ip4-address> collector <ip4-address> udp-port <nnnn>",
vnet_main_t * vnet_get_main(void)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
#define VLIB_INIT_FUNCTION(x)
#define clib_error_return(e, args...)
vlib_node_registration_t li_hit_node
(constructor) VLIB_REGISTER_NODE (li_hit_node)
sll srl srl sll sra u16x4 i
#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)
ip4_address_t * collectors