Lines Matching refs:optflags
85 if (!(toys.optflags & FLAG_q)) { in done()
90 if (toys.optflags & FLAG_D) exit(!!TT.rcvd_nr); in done()
92 if (toys.optflags & FLAG_U) exit(EXIT_SUCCESS); in done()
108 arp_h->ar_op = (toys.optflags & FLAG_A) ? htons(ARPOP_REPLY) in send_packet()
114 (toys.optflags & FLAG_A) ? &src_pk.sll_addr : &dst_pk.sll_addr, in send_packet()
152 if (toys.optflags & FLAG_D) { in recv_from()
157 if (!(toys.optflags & FLAG_q)) { in recv_from()
174 if (toys.optflags & FLAG_f) done(0); in recv_from()
175 if (!(toys.optflags & FLAG_b)) { in recv_from()
190 if (toys.optflags & FLAG_c) { in send_signal()
194 if ((toys.optflags & FLAG_w) && ((TT.end - TT.start) > in send_signal()
207 if (!(toys.optflags & FLAG_I)) TT.iface = "eth0"; in arping_main()
216 if (!(ifr.ifr_flags & IFF_UP) && !(toys.optflags & FLAG_q)) in arping_main()
219 && !(toys.optflags & FLAG_q)) { in arping_main()
221 toys.exitval = (toys.optflags & FLAG_D) ? 0 : 2; in arping_main()
230 if ((toys.optflags & FLAG_s) && !(inet_aton(TT.src_ip, &src_addr))) in arping_main()
232 if (!(toys.optflags & FLAG_D) && (toys.optflags & FLAG_U) in arping_main()
234 if (!(toys.optflags & FLAG_D) || src_addr.s_addr) { in arping_main()
266 toys.exitval = (toys.optflags & FLAG_D) ? 0 : 2; in arping_main()
269 if (!(toys.optflags & FLAG_q)) { in arping_main()