Home | History | Annotate | Download | only in pending

Lines Matching refs:toys

35 #include "toys.h"
146 resolve_host(toys.optargs[0], &sa);
162 if (!toys.optargs[1]) error_exit("bad syntax");
164 if (!(toys.optflags & FLAG_D)) get_hw_add(toys.optargs[1], (char*)&req.arp_ha.sa_data);
168 xstrncpy(ifre.ifr_name, toys.optargs[1], IFNAMSIZ);
170 if ((toys.optflags & FLAG_H) && (ifre.ifr_hwaddr.sa_family != ARPHRD_ETHER))
176 if (toys.optargs[2]) check_flags(&flags, (toys.optargs+2));
181 if (toys.optflags & FLAG_v) xprintf("Entry set for %s\n", toys.optargs[0]);
205 if (toys.optargs[1]) check_flags(&flags, (toys.optargs+1));
210 if (toys.optflags & FLAG_v) xprintf("Delete entry for %s\n", toys.optargs[0]);
225 if ((toys.optflags & FLAG_A) || (toys.optflags & FLAG_p)) {
232 if (toys.optflags & FLAG_H) {
238 if (((toys.optflags & FLAG_s) || toys.optflags & FLAG_d)) {
239 if (!toys.optargs[0]) error_exit("host name req");
240 resolve_host(toys.optargs[0], &sa);
244 if ((toys.optflags & FLAG_s) && !set_entry()) return;
245 if ((toys.optflags & FLAG_d) && !delete_entry()) return;
252 if (toys.optargs[0]) {
253 resolve_host(toys.optargs[0], &sa);
264 if (((toys.optflags & FLAG_H) && (get_index(hwtype, TT.hw_type) != h_type))
265 || ((toys.optflags & FLAG_i) && strcmp(TT.interface, dev))
266 || (toys.optargs[0] && strcmp(host_ip, ip))) {
272 if (!(toys.optflags & FLAG_n)) {
297 if (toys.optflags & FLAG_v)