ping.c | 83 struct sockaddr_in whereto; /* who to ping */ variable in typeref:struct:sockaddr_in 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 [all...] |