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()
175 if (toys.optflags & FLAG_f) done(0); in recv_from()
176 if (!(toys.optflags & FLAG_b)) { in recv_from()
191 if (toys.optflags & FLAG_c) { in send_signal()
195 if ((toys.optflags & FLAG_w) && ((TT.end - TT.start) > in send_signal()
208 if (!(toys.optflags & FLAG_I)) TT.iface = "eth0"; in arping_main()
217 if (!(ifr.ifr_flags & IFF_UP) && !(toys.optflags & FLAG_q)) in arping_main()
220 && !(toys.optflags & FLAG_q)) { in arping_main()
222 toys.exitval = (toys.optflags & FLAG_D) ? 0 : 2; in arping_main()
231 if ((toys.optflags & FLAG_s) && !(inet_aton(TT.src_ip, &src_addr))) in arping_main()
233 if (!(toys.optflags & FLAG_D) && (toys.optflags & FLAG_U) in arping_main()
235 if (!(toys.optflags & FLAG_D) || src_addr.s_addr) { in arping_main()
270 toys.exitval = (toys.optflags & FLAG_D) ? 0 : 2; in arping_main()
273 if (!(toys.optflags & FLAG_q)) { in arping_main()