Lines Matching refs:fromp
78 static void doit(int f, struct sockaddr_storage *fromp);
162 doit(int f, struct sockaddr_storage *fromp)
202 if (fromp->ss_family == AF_INET) {
203 sin = (struct sockaddr_in *)fromp;
206 } else if (fromp->ss_family == AF_INET6) {
207 sin6 = (struct sockaddr_in6 *)fromp;
212 fromp->ss_family);
219 if (getnameinfo((const struct sockaddr *) fromp, fromplen, hostname,
221 if (fromp->ss_family == AF_INET6) {
233 } else if (fromp->ss_family == AF_INET) {
254 s = socket(fromp->ss_family, SOCK_STREAM, 0);
260 if (fromp->ss_family == AF_INET) {
262 } else if (fromp->ss_family == AF_INET6) {
265 if (connect(s, (struct sockaddr *)fromp, fromplen) < 0)