Home | History | Annotate | Download | only in iputils

Lines Matching full:sin_addr

202 				ptr = (__u8*)&source.sin_addr;
212 if (inet_pton(AF_INET, optarg, &source.sin_addr) > 0)
265 if (inet_aton(target, &whereto.sin_addr) == 1) {
295 memcpy(&whereto.sin_addr, hp->h_addr, 4);
311 route[nroute++] = whereto.sin_addr.s_addr;
316 if (source.sin_addr.s_addr == 0) {
337 if (IN_MULTICAST(ntohl(dst.sin_addr.s_addr))) {
362 dst.sin_addr.s_addr = route[0];
405 !memcmp(&((struct sockaddr_in *)ifa->ifa_addr)->sin_addr,
406 &source.sin_addr, sizeof(source.sin_addr)))
417 if (whereto.sin_addr.s_addr == 0)
418 whereto.sin_addr.s_addr = source.sin_addr.s_addr;
439 if (broadcast_pings || IN_MULTICAST(ntohl(whereto.sin_addr.s_addr))) {
594 printf("PING %s (%s) ", hostname, inet_ntoa(whereto.sin_addr));
596 printf("from %s %s: ", inet_ntoa(source.sin_addr), device ?: "");
659 target.sin_addr.s_addr != whereto.sin_addr.s_addr ||
696 printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence));
800 pr_addr(from->sin_addr.s_addr));
835 ttl, 0, tv, pr_addr(from->sin_addr.s_addr),
860 iph->daddr != whereto.sin_addr.s_addr ||
891 pr_addr(from->sin_addr.s_addr),
916 printf("From %s: ", pr_addr(from->sin_addr.s_addr));