• Home
  • Raw
  • Download

Lines Matching refs:toys

127         resolve_host(toys.optargs[0], &sa);  in check_flags()
143 if (!toys.optargs[1]) error_exit("bad syntax"); in set_entry()
145 if (!(toys.optflags & FLAG_D)) { in set_entry()
146 char *ptr = toys.optargs[1]; in set_entry()
163 xstrncpy(ifre.ifr_name, toys.optargs[1], IFNAMSIZ); in set_entry()
165 if ((toys.optflags & FLAG_H) && (ifre.ifr_hwaddr.sa_family != ARPHRD_ETHER)) 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()
220 if ((toys.optflags & FLAG_A) || (toys.optflags & FLAG_p)) { in arp_main()
227 if (toys.optflags & FLAG_H) { in arp_main()
233 if (((toys.optflags & FLAG_s) || toys.optflags & FLAG_d)) { in arp_main()
234 if (!toys.optargs[0]) error_exit("host name req"); in arp_main()
235 resolve_host(toys.optargs[0], &sa); in arp_main()
239 if ((toys.optflags & FLAG_s) && !set_entry()) return; in arp_main()
240 if ((toys.optflags & FLAG_d) && !delete_entry()) return; in arp_main()
247 if (toys.optargs[0]) { in arp_main()
248 resolve_host(toys.optargs[0], &sa); in arp_main()
259 if (((toys.optflags & FLAG_H) && (get_index(hwtype, TT.hw_type) != h_type)) in arp_main()
260 || ((toys.optflags & FLAG_i) && strcmp(TT.interface, dev)) in arp_main()
261 || (toys.optargs[0] && strcmp(host_ip, ip))) { in arp_main()
267 if (!(toys.optflags & FLAG_n)) { in arp_main()
292 if (toys.optflags & FLAG_v) in arp_main()