Lines Matching refs:local
106 s->local_salen = sizeof(s->local); in dns_stream_identify()
107 r = getsockname(s->fd, &s->local.sa, &s->local_salen); in dns_stream_identify()
110 if (s->local.sa.sa_family == AF_INET6 && s->ifindex <= 0) in dns_stream_identify()
111 s->ifindex = s->local.in6.sin6_scope_id; in dns_stream_identify()
122 assert(s->peer.sa.sa_family == s->local.sa.sa_family); in dns_stream_identify()
192 …s->ifindex = manager_find_ifindex(s->manager, s->local.sa.sa_family, sockaddr_in_addr(&s->local.sa… in dns_stream_identify()
196 r = socket_set_unicast_if(s->fd, s->local.sa.sa_family, s->ifindex); in dns_stream_identify()
398 … s->read_packet->destination.in = s->local.in.sin_addr; in on_stream_io()
399 … s->read_packet->destination_port = be16toh(s->local.in.sin_port); in on_stream_io()
404 … s->read_packet->destination.in6 = s->local.in6.sin6_addr; in on_stream_io()
405 … s->read_packet->destination_port = be16toh(s->local.in6.sin6_port); in on_stream_io()
410 … s->read_packet->ifindex = s->local.in6.sin6_scope_id; in on_stream_io()