Lines Matching refs:arg
115 char *arg; in parse_ifi_target() local
125 arg = argv[*argidx]; in parse_ifi_target()
127 iface_index = shell_strtoul(arg, 10, &err); in parse_ifi_target()
130 PR_ERROR("\"%s\" is not a valid iface index.\n", arg); in parse_ifi_target()
137 PR_ERROR("iface with index \"%s\" does not exist.\n", arg); in parse_ifi_target()
154 char *arg; in parse_if_target() local
161 arg = argv[*argidx]; in parse_if_target()
163 target->iface = net_if_get_by_index(net_if_get_by_name(arg)); in parse_if_target()
166 PR_ERROR("iface with name \"%s\" does not exist.\n", arg); in parse_if_target()
187 char *arg; in parse_target() local
195 arg = argv[*argidx]; in parse_target()
198 if (strcasecmp(arg, "all") == 0) { in parse_target()
204 if (strcasecmp(arg, "none") == 0) { in parse_target()
211 if (check_numeric(arg)) { in parse_target()
216 if (strcasecmp(arg, "if") == 0) { in parse_target()
221 if (strcasecmp(arg, "ifi") == 0) { in parse_target()
226 PR_ERROR("%s is not a valid target type or target specifier.\n", arg); in parse_target()
236 char *arg; in parse_getset() local
243 arg = argv[*argidx]; in parse_getset()
245 if (strcasecmp(arg, "get") == 0) { in parse_getset()
251 if (strcasecmp(arg, "set") == 0) { in parse_getset()
265 char *arg; in parse_flag() local
275 arg = argv[*argidx]; in parse_flag()
278 if (strcasecmp(arg, flag_strings[i].name) == 0) { in parse_flag()
285 PR_ERROR("%s is not a valid flag.\n", arg); in parse_flag()
291 char *arg; in parse_bool() local
298 arg = argv[*argidx]; in parse_bool()
300 if (strcasecmp(arg, "yes") == 0 || in parse_bool()
301 strcasecmp(arg, "y") == 0 || in parse_bool()
302 strcasecmp(arg, "1") == 0 || in parse_bool()
303 strcasecmp(arg, "true") == 0) { in parse_bool()
309 if (strcasecmp(arg, "no") == 0 || in parse_bool()
310 strcasecmp(arg, "n") == 0 || in parse_bool()
311 strcasecmp(arg, "0") == 0 || in parse_bool()
312 strcasecmp(arg, "false") == 0) { in parse_bool()
326 char *arg; in parse_timeout() local
336 arg = argv[*argidx]; in parse_timeout()
339 if (strcasecmp(arg, "none") == 0) { in parse_timeout()
346 if (!check_numeric(arg)) { in parse_timeout()
347 PR_ERROR("%s is not a valid timeout.\n", arg); in parse_timeout()
351 value = shell_strtoul(arg, 10, &err); in parse_timeout()
353 PR_ERROR("%s is not a valid timeout.\n", arg); in parse_timeout()