Lines Matching refs:sin_addr
190 ptr = (__u8*)&source.sin_addr;
247 if (inet_aton(target, &whereto.sin_addr) == 1) {
257 memcpy(&whereto.sin_addr, hp->h_addr, 4);
263 route[nroute++] = whereto.sin_addr.s_addr;
268 if (source.sin_addr.s_addr == 0) {
282 if (IN_MULTICAST(ntohl(dst.sin_addr.s_addr))) {
304 dst.sin_addr.s_addr = route[0];
335 if (whereto.sin_addr.s_addr == 0)
336 whereto.sin_addr.s_addr = source.sin_addr.s_addr;
357 if (broadcast_pings || IN_MULTICAST(ntohl(whereto.sin_addr.s_addr))) {
391 sa.sin_addr.s_addr = (options&F_STRICTSOURCE) ?
392 source.sin_addr.s_addr : 0;
534 printf("PING %s (%s) ", hostname, inet_ntoa(whereto.sin_addr));
536 printf("from %s %s: ", inet_ntoa(source.sin_addr), device ?: "");
599 target.sin_addr.s_addr != whereto.sin_addr.s_addr ||
635 printf("From %s: icmp_seq=%u ", pr_addr(sin->sin_addr.s_addr), ntohs(icmph.un.echo.sequence));
739 pr_addr(from->sin_addr.s_addr));
774 ttl, 0, tv, pr_addr(from->sin_addr.s_addr)))
798 iph->daddr != whereto.sin_addr.s_addr ||
828 pr_addr(from->sin_addr.s_addr),
848 printf("From %s: ", pr_addr(from->sin_addr.s_addr));