Home | History | Annotate | Download | only in ping

Lines Matching refs:whereto

83 struct sockaddr_in whereto;	/* who to ping */
245 bzero((char *)&whereto, sizeof(whereto));
246 whereto.sin_family = AF_INET;
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;
270 struct sockaddr_in dst = whereto;
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))) {
534 printf("PING %s (%s) ", hostname, inet_ntoa(whereto.sin_addr));
599 target.sin_addr.s_addr != whereto.sin_addr.s_addr ||
699 static struct msghdr m = { &whereto, sizeof(whereto),
798 iph->daddr != whereto.sin_addr.s_addr ||