Lines Matching refs:optargs
127 resolve_host(toys.optargs[0], &sa); in check_flags()
143 if (!toys.optargs[1]) error_exit("bad syntax"); in set_entry()
146 char *ptr = toys.optargs[1]; in set_entry()
163 xstrncpy(ifre.ifr_name, toys.optargs[1], IFNAMSIZ); in set_entry()
171 if (toys.optargs[2]) check_flags(&flags, (toys.optargs+2)); in set_entry()
176 if (toys.optflags & FLAG_v) xprintf("Entry set for %s\n", toys.optargs[0]); in set_entry()
200 if (toys.optargs[1]) check_flags(&flags, (toys.optargs+1)); in delete_entry()
205 if (toys.optflags & FLAG_v) xprintf("Delete entry for %s\n", toys.optargs[0]); in delete_entry()
234 if (!toys.optargs[0]) error_exit("host name req"); in arp_main()
235 resolve_host(toys.optargs[0], &sa); in arp_main()
247 if (toys.optargs[0]) { in arp_main()
248 resolve_host(toys.optargs[0], &sa); in arp_main()
261 || (toys.optargs[0] && strcmp(host_ip, ip))) { in arp_main()