Lines Matching refs:src_addr
48 struct in_addr src_addr, dest_addr; variable
112 ptr = mempcpy(ptr, &src_addr, 4); in send_packet()
153 if (src_addr.s_addr && src_addr.s_addr != d_ip.s_addr) return; in recv_from()
155 } else if (src_addr.s_addr != d_ip.s_addr ) return; in recv_from()
231 if ((toys.optflags & FLAG_s) && !(inet_aton(TT.src_ip, &src_addr))) in arping_main()
234 && !src_addr.s_addr) src_addr = dest_addr; in arping_main()
235 if (!(toys.optflags & FLAG_D) || src_addr.s_addr) { in arping_main()
244 if (src_addr.s_addr) { in arping_main()
245 saddr.sin_addr = src_addr; in arping_main()
256 src_addr.s_addr = htonl(oip); in arping_main()
275 xprintf(" from %s via %s\n", inet_ntoa(src_addr), TT.iface); in arping_main()