Lines Matching refs:sa
307 union sockaddr_union sa = {};
318 sa.sa.sa_family = server->family;
320 sa.in.sin_port = htobe16(port);
321 sa.in.sin_addr = server->address.in;
322 salen = sizeof(sa.in);
324 sa.in6.sin6_port = htobe16(port);
325 sa.in6.sin6_addr = server->address.in6;
326 sa.in6.sin6_scope_id = s->link ? s->link->ifindex : 0;
327 salen = sizeof(sa.in6);
334 sa.sa.sa_family = family;
337 sa.in.sin_port = htobe16(port);
338 sa.in.sin_addr = address->in;
339 salen = sizeof(sa.in);
341 sa.in6.sin6_port = htobe16(port);
342 sa.in6.sin6_addr = address->in6;
343 sa.in6.sin6_scope_id = s->link ? s->link->ifindex : 0;
344 salen = sizeof(sa.in6);
349 fd = socket(sa.sa.sa_family, type|SOCK_CLOEXEC|SOCK_NONBLOCK, 0);
362 if (sa.sa.sa_family == AF_INET) {
366 } else if (sa.sa.sa_family == AF_INET6) {
376 if (sa.sa.sa_family == AF_INET) {
380 } else if (sa.sa.sa_family == AF_INET6) {
387 r = connect(fd, &sa.sa, salen);