Searched refs:input (Results 1 - 25 of 510) sorted by relevance

1234567891011>>

/vpp/src/vnet/qos/
H A Dqos_types.c35 unformat_qos_source (unformat_input_t * input, va_list * args) argument
39 if (unformat (input, "ip"))
41 else if (unformat (input, "mpls"))
43 else if (unformat (input, "ext"))
45 else if (unformat (input, "vlan"))
/vpp/src/vlib/
H A Dformat_funcs.h51 uword unformat_vlib_enable_disable (unformat_input_t * input, va_list * args);
54 uword unformat_vlib_rx_tx (unformat_input_t * input, va_list * args);
57 uword unformat_vlib_number_by_name (unformat_input_t * input, va_list * args);
60 uword unformat_vlib_number (unformat_input_t * input, va_list * args);
63 uword unformat_vlib_tmpfile (unformat_input_t * input, va_list * args);
H A Dformat.c116 unformat_vlib_enable_disable (unformat_input_t * input, va_list * args) argument
121 if (unformat (input, "enable") || unformat (input, "on"))
123 else if (unformat (input, "disable") || unformat (input, "off"))
134 unformat_vlib_rx_tx (unformat_input_t * input, va_list * args) argument
137 if (unformat (input, "rx"))
139 else if (unformat (input, "tx"))
148 unformat_vlib_number (unformat_input_t * input, va_list * args) argument
152 return (unformat (input, "
157 unformat_vlib_number_by_name(unformat_input_t * input, va_list * args) argument
192 unformat_vlib_tmpfile(unformat_input_t * input, va_list * args) argument
[all...]
/vpp/src/plugins/unittest/
H A Dapi_fuzz_test.c72 unformat_input_t * input, vlib_cli_command_t * cmd)
99 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
101 if (unformat (input, "seed %d", &fuzz_seed))
103 else if (unformat (input, "disable") | unformat (input, "off"))
105 else if (unformat (input, "fuzz-first %d", &tmp))
107 else if (unformat (input, "fuzz-cli-first %d", &tmp))
109 else if (unformat (input, "fuzz-cli-last %d", &tmp))
141 api_fuzz_config (vlib_main_t * vm, unformat_input_t * input) argument
143 while (unformat_check_input (input) !
71 test_api_fuzz_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
[all...]
H A Dinterface_test.c20 unformat_input_t * input, vlib_cli_command_t * cmd)
30 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
33 (input, "%U", unformat_vnet_sw_interface, vnm, &sw_if_index))
35 else if (unformat (input, "up"))
37 else if (unformat (input, "down"))
54 format_unformat_error, input);
19 test_interface_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
H A Dipsec_test.c21 unformat_input_t * input, vlib_cli_command_t * cmd)
29 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
31 if (unformat (input, "sa %d", &sa_id))
33 else if (unformat (input, "seq 0x%llx", &seq_num))
56 format_unformat_error, input);
20 test_ipsec_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
/vpp/src/plugins/ioam/udp-ping/
H A Dudp_ping_test.c49 unformat_input_t *input = vam->input; local
58 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
60 if (unformat (input, "src %U", unformat_ip46_address, &src))
62 else if (unformat (input, "start-src-port %d", &start_src_port))
64 else if (unformat (input, "end-src-port %d", &end_src_port))
66 else if (unformat (input, "start-dst-port %d", &start_dst_port))
68 else if (unformat (input, "end-dst-port %d", &end_dst_port))
70 else if (unformat (input, "dst %U", unformat_ip46_address, &dst))
72 else if (unformat (input, "interva
100 unformat_input_t *input = vam->input; local
[all...]
/vpp/src/vnet/bier/
H A Dbier_update.c25 unformat_input_t * input,
37 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT) {
38 if (unformat (input, "del")) {
40 } else if (unformat (input, "add")) {
42 } else if (unformat (input, "sd %d", &bti.bti_sub_domain)) {
43 } else if (unformat (input, "set %d", &bti.bti_set)) {
44 } else if (unformat (input, "bsl %d", &hdr_len)) {
45 } else if (unformat (input, "mpls %d", &local_label)) {
47 error = unformat_parse_error (input);
77 unformat_input_t * input,
24 vnet_bier_table_cmd(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
76 vnet_bier_route_cmd(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
137 show_bier_fib_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
[all...]
/vpp/src/tools/perftool/
H A Ddelsvec.c32 * break up an input string into a vector of [null-terminated] u8 *'s
40 * Returns a u8 **, or NULL if the input fails to match. It is assumed
41 * that both input and fmt are C strings, not necessarily vectors.
80 u8 *input = input_arg; local
95 * '*' means one of two things: match the rest of the input,
105 for (;input[input_index]; input_index++)
106 vec_add1(this, input[input_index]);
125 while (input[input_index]) {
126 if (input[input_index] == fmt[0]) {
130 while (input[input_inde
[all...]
/vpp/src/vppinfra/
H A Dunformat.c40 /* Call user's function to fill input buffer. */
65 /* If input pointer is still beyond end of buffer even after
66 fill then we've run out of input. */
89 /* Format function for dumping input stream. */
96 /* Only show so much of the input buffer (it could be really large). */
173 unformat_string (unformat_input_t * input, argument
193 while ((c = unformat_get_input (input)) != UNFORMAT_END_OF_INPUT)
197 /* Null return string means to skip over delimited input. */
231 unformat_put_input (input);
239 unformat_put_input (input);
272 unformat_hex_string(unformat_input_t * input, va_list * va) argument
321 unformat_eof(unformat_input_t * input, va_list * va) argument
328 unformat_token(unformat_input_t * input, va_list * va) argument
430 unformat_integer(unformat_input_t * input, va_list * va, uword base, uword is_signed, uword data_bytes) argument
577 unformat_float(unformat_input_t * input, va_list * va) argument
697 match_input_with_format(unformat_input_t * input, const char *f) argument
719 do_percent(unformat_input_t * input, va_list * va, const char *f) argument
821 unformat_skip_white_space(unformat_input_t * input) argument
839 va_unformat(unformat_input_t * input, const char *fmt, va_list * va) argument
978 unformat(unformat_input_t * input, const char *fmt, ...) argument
989 unformat_user(unformat_input_t * input, unformat_function_t * func, ...) argument
1013 unformat_init_command_line(unformat_input_t * input, char *argv[]) argument
1029 unformat_init_string(unformat_input_t * input, char *string, int string_len) argument
1037 unformat_init_vector(unformat_input_t * input, u8 * vector_string) argument
1046 clib_file_fill_buffer(unformat_input_t * input) argument
1064 unformat_init_clib_file(unformat_input_t * input, int file_descriptor) argument
1072 unformat_init_unix_env(unformat_input_t * input, char *var) argument
1081 unformat_data_size(unformat_input_t * input, va_list * args) argument
[all...]
H A Dformat.h132 /* Current index in input buffer. */
144 input has been exhausted. */
173 /* Low level fill input function. */
182 /* Return true if input is exhausted */
184 unformat_is_eof (unformat_input_t * input) argument
186 return unformat_check_input (input) == UNFORMAT_END_OF_INPUT;
189 /* Return next element in input vector,
190 possibly calling fill input to get more. */
192 unformat_get_input (unformat_input_t * input) argument
194 uword i = unformat_check_input (input);
205 unformat_put_input(unformat_input_t * input) argument
212 unformat_peek_input(unformat_input_t * input) argument
257 unformat_init_cstring(unformat_input_t * input, char *string) argument
[all...]
H A Dtest_format.c75 test_format_main (unformat_input_t * input) argument
129 test_unformat_main (unformat_input_t * input) argument
140 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
142 if (unformat (input, "01 %d %d", &v[0], &v[1]))
144 else if (unformat (input, "d %d", &v[0]))
146 else if (unformat (input, "ld %ld", &l))
148 else if (unformat (input, "lld %lld", &ll))
150 else if (unformat (input, "string %s", &s))
152 else if (unformat (input, "float %f", &f))
154 else if (unformat (input, "fo
[all...]
/vpp/src/plugins/vrrp/
H A Dvrrp_cli.c21 unformat_input_t * input,
46 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
50 if (unformat (input, "%U", unformat_vnet_sw_interface, vmp->vnet_main,
53 else if (unformat (input, "vr_id %u", &vr_id))
55 else if (unformat (input, "ipv6"))
57 else if (unformat (input, "priority %u", &priority))
59 else if (unformat (input, "interval %u", &interval))
61 else if (unformat (input, "no_preempt"))
63 else if (unformat (input, "accept_mode"))
65 else if (unformat (input, "unicas
20 vrrp_vr_add_del_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd, u8 is_add) argument
148 vrrp_vr_add_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
165 vrrp_vr_del_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
181 vrrp_show_vr_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
223 vrrp_proto_start_stop_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
288 vrrp_peers_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
398 vrrp_vr_track_if_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
[all...]
/vpp/src/vpp/api/
H A Dtypes.h29 extern uword unformat_vl_api_mac_address (unformat_input_t * input, va_list * args);
30 extern uword unformat_vl_api_address_family (unformat_input_t * input, va_list * args);
31 extern uword unformat_vl_api_address (unformat_input_t * input, va_list * args);
32 extern uword unformat_vl_api_ip4_address (unformat_input_t * input, va_list * args);
33 extern uword unformat_vl_api_ip6_address (unformat_input_t * input, va_list * args);
34 extern uword unformat_vl_api_prefix (unformat_input_t * input, va_list * args);
35 extern uword unformat_vl_api_mprefix (unformat_input_t * input, va_list * args);
36 extern uword unformat_vl_api_version (unformat_input_t * input, va_list * args);
H A Dtypes.c120 unformat_vl_api_mac_address (unformat_input_t * input, va_list * args) argument
124 return (unformat (input, "%U",unformat_ethernet_address, mac));
128 unformat_vl_api_address (unformat_input_t * input, va_list * args) argument
132 if (unformat (input, "%U", unformat_ip4_address, &ip->un.ip4))
134 else if (unformat (input, "%U", unformat_ip6_address, &ip->un.ip6))
143 unformat_vl_api_address_family (unformat_input_t * input, argument
148 if (unformat (input, "ip4") || unformat (input, "ipv4"))
150 else if (unformat (input, "ip6") || unformat (input, "ipv
159 unformat_vl_api_ip4_address(unformat_input_t * input, va_list * args) argument
169 unformat_vl_api_ip6_address(unformat_input_t * input, va_list * args) argument
179 unformat_vl_api_prefix(unformat_input_t * input, va_list * args) argument
190 unformat_vl_api_mprefix(unformat_input_t * input, va_list * args) argument
236 unformat_vl_api_version(unformat_input_t * input, va_list * args) argument
[all...]
/vpp/extras/deprecated/vppinfra/
H A Dtest_phash.c47 test_phash_main (unformat_input_t * input) argument
56 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
58 if (0 == unformat (input, "keys %d", &n_keys)
59 && 0 == unformat (input, "verbose %=", &verbose, 1)
60 && 0 == unformat (input, "random-keys %=", &random_keys, 1)
61 && 0 == unformat (input, "sequential-keys %=", &random_keys, 0)
62 && 0 == unformat (input, "seed %d", &pm->random_seed)
63 && 0 == unformat (input, "64-bit %|", &pm->flags, PHASH_FLAG_MIX64)
64 && 0 == unformat (input, "32-bit %|", &pm->flags, PHASH_FLAG_MIX32)
65 && 0 == unformat (input, "fas
[all...]
/vpp/src/plugins/ioam/lib-pot/
H A Dpot_test.c45 unformat_input_t *input = vam->input; local
57 while (unformat_check_input(input) != UNFORMAT_END_OF_INPUT)
59 if (unformat(input, "name %s", &name))
61 else if(unformat(input, "id %d", &id))
63 else if (unformat(input, "validator-key 0x%Lx", &secret_key))
65 else if (unformat(input, "prime-number 0x%Lx", &prime))
67 else if (unformat(input, "secret-share 0x%Lx", &secret_share))
69 else if (unformat(input, "polynomial-public 0x%Lx", &poly2))
71 else if (unformat(input, "lp
120 unformat_input_t *input = vam->input; local
171 unformat_input_t *input = vam->input; local
[all...]
/vpp/src/vnet/ip6-nd/
H A Dip6_nd_proxy.c85 unformat_input_t * input, vlib_cli_command_t * cmd)
93 if (unformat_user (input, unformat_vnet_sw_interface, vnm, &sw_if_index))
96 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
98 if (unformat (input, "%U", unformat_ip6_address, &addr))
100 else if (unformat (input, "delete") || unformat (input, "del"))
103 return (unformat_parse_error (input));
84 set_ip6_nd_proxy_cmd(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
/vpp/src/vat/
H A Dtypes.c120 unformat_vl_api_mac_address (unformat_input_t * input, va_list * args) argument
124 return (unformat (input, "%U",unformat_ethernet_address, mac));
128 unformat_vl_api_address (unformat_input_t * input, va_list * args) argument
132 if (unformat (input, "%U", unformat_ip4_address, &ip->un.ip4))
134 else if (unformat (input, "%U", unformat_ip6_address, &ip->un.ip6))
143 unformat_vl_api_address_family (unformat_input_t * input, argument
148 if (unformat (input, "ip4") || unformat (input, "ipv4"))
150 else if (unformat (input, "ip6") || unformat (input, "ipv
159 unformat_vl_api_ip4_address(unformat_input_t * input, va_list * args) argument
169 unformat_vl_api_ip6_address(unformat_input_t * input, va_list * args) argument
179 unformat_vl_api_prefix(unformat_input_t * input, va_list * args) argument
190 unformat_vl_api_mprefix(unformat_input_t * input, va_list * args) argument
236 unformat_vl_api_version(unformat_input_t * input, va_list * args) argument
[all...]
/vpp/src/vnet/tunnel/
H A Dtunnel.c38 unformat_tunnel_mode (unformat_input_t * input, va_list * args) argument
42 if (unformat (input, "p2p"))
44 else if (unformat (input, "p2mp") || unformat (input, "mp"))
/vpp/src/plugins/ioam/lib-trace/
H A Dtrace_test.c46 unformat_input_t *input = vam->input; local
55 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
57 if (unformat (input, "trace-type 0x%x", &trace_type))
59 else if (unformat (input, "trace-elts %d", &num_elts))
61 else if (unformat (input, "trace-tsp %d", &trace_tsp))
63 else if (unformat (input, "node-id 0x%x", &node_id))
65 else if (unformat (input, "app-data 0x%x", &app_data))
/vpp/src/vnet/classify/
H A Din_out_acl.c151 unformat_input_t * input, vlib_cli_command_t * cmd,
163 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
165 if (unformat (input, "intfc %U", unformat_vnet_sw_interface,
168 else if (unformat (input, "ip4-table %d", &ip4_table_index))
170 else if (unformat (input, "ip6-table %d", &ip6_table_index))
172 else if (unformat (input, "l2-table %d", &l2_table_index))
174 else if (unformat (input, "del"))
209 unformat_input_t * input, vlib_cli_command_t * cmd)
211 return set_in_out_acl_command_fn (vm, input, cmd,
217 unformat_input_t * input, vlib_cli_command_
150 set_in_out_acl_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd, u32 is_output) argument
208 set_input_acl_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
216 set_output_acl_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
269 unformat_acl_type(unformat_input_t * input, va_list * args) argument
311 show_in_out_acl_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd, u32 is_output) argument
354 show_inacl_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
362 show_outacl_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
[all...]
H A Dpolicer_classify.c111 unformat_input_t * input,
123 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
125 if (unformat (input, "interface %U", unformat_vnet_sw_interface,
128 else if (unformat (input, "ip4-table %d", &ip4_table_index))
130 else if (unformat (input, "ip6-table %d", &ip6_table_index))
132 else if (unformat (input, "l2-table %d", &l2_table_index))
134 else if (unformat (input, "del"))
178 unformat_table_type (unformat_input_t * input, va_list * va) argument
183 if (unformat (input, "ip4"))
185 else if (unformat (input, "ip
110 set_policer_classify_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
197 show_policer_classify_command_fn(vlib_main_t * vm, unformat_input_t * input, vlib_cli_command_t * cmd) argument
[all...]
/vpp/src/vnet/unix/
H A Dpcap2cinit.c2 * pcap2cinit.c: convert pcap input to a u8 ** initializer
71 * usage: pcap2pg -i <input-file> [-o <output-file>]
76 unformat_input_t input; local
82 unformat_init_command_line (&input, argv);
84 while (unformat_check_input (&input) != UNFORMAT_END_OF_INPUT)
86 if (unformat (&input, "-i %s", &input_file)
87 || unformat (&input, "input %s", &input_file))
89 else if (unformat (&input, "-o %s", &output_file)
90 || unformat (&input, "outpu
[all...]
/vpp/src/plugins/perfmon/
H A Dmapfile_tool.c160 mapfile_main (unformat_input_t * input, mapfile_tool_main_t * mtm) argument
166 while (unformat_check_input (input) != UNFORMAT_END_OF_INPUT)
168 if (unformat (input, "in %s", &mtm->ifile))
170 else if (unformat (input, "out %s", &mtm->ofile))
174 fformat (stderr, "unknown input '%U'\n", format_unformat_error,
175 input);
184 fformat (stderr, "input file not specified\n");
222 unformat_input_t input; local
228 unformat_init_command_line (&input, argv);
229 r = mapfile_main (&input, mt
[all...]

Completed in 15 milliseconds

1234567891011>>