Lines Matching refs:sa
83 r = getsockname(s->fd, &s->local.sa, &s->local_salen);
86 if (s->local.sa.sa_family == AF_INET6 && s->ifindex <= 0)
91 r = getpeername(s->fd, &s->peer.sa, &s->peer_salen);
94 if (s->peer.sa.sa_family == AF_INET6 && s->ifindex <= 0)
98 assert(s->peer.sa.sa_family == s->local.sa.sa_family);
99 assert(IN_SET(s->peer.sa.sa_family, AF_INET, AF_INET6));
103 if (s->peer.sa.sa_family == AF_INET) {
107 } else if (s->peer.sa.sa_family == AF_INET6) {
121 assert(s->peer.sa.sa_family == AF_INET6);
139 assert(s->peer.sa.sa_family == AF_INET);
168 s->ifindex = manager_find_ifindex(s->manager, s->local.sa.sa_family, s->local.sa.sa_family == AF_INET ? (union in_addr_union*) &s->local.in.sin_addr : (union in_addr_union*) &s->local.in6.sin6_addr);
174 if (s->local.sa.sa_family == AF_INET) {
178 } else if (s->local.sa.sa_family == AF_INET6) {
269 s->read_packet->family = s->peer.sa.sa_family;