Lines Matching refs:sa
135 struct sockaddr_in6 sa; in d6_send_kernel_packet_from_client_data_ifindex() local
147 memset(&sa, 0, sizeof(sa)); in d6_send_kernel_packet_from_client_data_ifindex()
148 sa.sin6_family = AF_INET6; in d6_send_kernel_packet_from_client_data_ifindex()
149 sa.sin6_port = htons(source_port); in d6_send_kernel_packet_from_client_data_ifindex()
150 sa.sin6_addr = *src_ipv6; /* struct copy */ in d6_send_kernel_packet_from_client_data_ifindex()
151 if (bind(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) { in d6_send_kernel_packet_from_client_data_ifindex()
156 memset(&sa, 0, sizeof(sa)); in d6_send_kernel_packet_from_client_data_ifindex()
157 sa.sin6_family = AF_INET6; in d6_send_kernel_packet_from_client_data_ifindex()
158 sa.sin6_port = htons(dest_port); in d6_send_kernel_packet_from_client_data_ifindex()
159 sa.sin6_addr = *dst_ipv6; /* struct copy */ in d6_send_kernel_packet_from_client_data_ifindex()
160 sa.sin6_scope_id = client_data.ifindex; in d6_send_kernel_packet_from_client_data_ifindex()
161 if (connect(fd, (struct sockaddr *)&sa, sizeof(sa)) == -1) { in d6_send_kernel_packet_from_client_data_ifindex()