Lines Matching refs:sin_addr
202 ptr = (__u8*)&source.sin_addr; in main()
212 if (inet_pton(AF_INET, optarg, &source.sin_addr) > 0) in main()
265 if (inet_aton(target, &whereto.sin_addr) == 1) { in main()
295 memcpy(&whereto.sin_addr, hp->h_addr, 4); in main()
311 route[nroute++] = whereto.sin_addr.s_addr; in main()
316 if (source.sin_addr.s_addr == 0) { in main()
337 if (IN_MULTICAST(ntohl(dst.sin_addr.s_addr))) { in main()
362 dst.sin_addr.s_addr = route[0]; in main()
408 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr, in main()
409 &source.sin_addr, sizeof(source.sin_addr))) in main()
420 if (whereto.sin_addr.s_addr == 0) in main()
421 whereto.sin_addr.s_addr = source.sin_addr.s_addr; in main()
442 if (broadcast_pings || IN_MULTICAST(ntohl(whereto.sin_addr.s_addr))) { in main()
597 printf("PING %s (%s) ", hostname, inet_ntoa(whereto.sin_addr)); in main()
599 printf("from %s %s: ", inet_ntoa(source.sin_addr), device ?: ""); in main()
662 target.sin_addr.s_addr != whereto.sin_addr.s_addr || in receive_error_msg()
699 printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence)); in receive_error_msg()
803 pr_addr(from->sin_addr.s_addr)); in parse_reply()
838 ttl, 0, tv, pr_addr(from->sin_addr.s_addr), in parse_reply()
863 iph->daddr != whereto.sin_addr.s_addr || in parse_reply()
894 pr_addr(from->sin_addr.s_addr), in parse_reply()
919 printf("From %s: ", pr_addr(from->sin_addr.s_addr)); in parse_reply()