Lines Matching refs:optargs
120 resolve_host(toys.optargs[0], &sa); in check_flags()
136 if (!toys.optargs[1]) error_exit("bad syntax"); in set_entry()
139 char *ptr = toys.optargs[1]; in set_entry()
156 xstrncpy(ifre.ifr_name, toys.optargs[1], IFNAMSIZ); in set_entry()
164 if (toys.optargs[2]) check_flags(&flags, (toys.optargs+2)); in set_entry()
169 if (FLAG(v)) xprintf("Entry set for %s\n", toys.optargs[0]); in set_entry()
192 if (toys.optargs[1]) check_flags(&flags, (toys.optargs+1)); in delete_entry()
197 if (FLAG(v)) xprintf("Delete entry for %s\n", toys.optargs[0]); in delete_entry()
226 if (!toys.optargs[0]) error_exit("-%c needs a host name", FLAG(d)?'d':'s'); in arp_main()
227 resolve_host(toys.optargs[0], &sa); in arp_main()
236 if (toys.optargs[0]) { in arp_main()
237 resolve_host(toys.optargs[0], &sa); in arp_main()
251 (toys.optargs[0] && strcmp(host_ip, ip))) { in arp_main()
282 if (toys.optargs[0] && !disp) in arp_main()
283 xprintf("%s (%s) -- no entry\n", toys.optargs[0], host_ip); in arp_main()