Lines Matching refs:addr_in
294 struct sockaddr_in *addr_in = (struct sockaddr_in *)*addr; in sockaddr_from_nsos_mid() local
296 addr_in->sin_family = AF_INET; in sockaddr_from_nsos_mid()
297 addr_in->sin_port = addr_in_mid->sin_port; in sockaddr_from_nsos_mid()
298 addr_in->sin_addr.s_addr = addr_in_mid->sin_addr; in sockaddr_from_nsos_mid()
300 *addrlen = sizeof(*addr_in); in sockaddr_from_nsos_mid()
307 struct sockaddr_in6 *addr_in = (struct sockaddr_in6 *)*addr; in sockaddr_from_nsos_mid() local
309 addr_in->sin6_family = AF_INET6; in sockaddr_from_nsos_mid()
310 addr_in->sin6_port = addr_in_mid->sin6_port; in sockaddr_from_nsos_mid()
311 addr_in->sin6_flowinfo = 0; in sockaddr_from_nsos_mid()
312 memcpy(addr_in->sin6_addr.s6_addr, addr_in_mid->sin6_addr, in sockaddr_from_nsos_mid()
313 sizeof(addr_in->sin6_addr.s6_addr)); in sockaddr_from_nsos_mid()
314 addr_in->sin6_scope_id = addr_in_mid->sin6_scope_id; in sockaddr_from_nsos_mid()
316 *addrlen = sizeof(*addr_in); in sockaddr_from_nsos_mid()
369 const struct sockaddr_in *addr_in = (const struct sockaddr_in *)addr; in sockaddr_to_nsos_mid() local
373 addr_in_mid->sin_port = addr_in->sin_port; in sockaddr_to_nsos_mid()
374 addr_in_mid->sin_addr = addr_in->sin_addr.s_addr; in sockaddr_to_nsos_mid()
378 *addrlen_mid = sizeof(*addr_in); in sockaddr_to_nsos_mid()
386 const struct sockaddr_in6 *addr_in = (const struct sockaddr_in6 *)addr; in sockaddr_to_nsos_mid() local
390 addr_in_mid->sin6_port = addr_in->sin6_port; in sockaddr_to_nsos_mid()
391 memcpy(addr_in_mid->sin6_addr, addr_in->sin6_addr.s6_addr, in sockaddr_to_nsos_mid()
393 addr_in_mid->sin6_scope_id = addr_in->sin6_scope_id; in sockaddr_to_nsos_mid()
397 *addrlen_mid = sizeof(*addr_in); in sockaddr_to_nsos_mid()