Searched refs:addr_in (Results 1 – 2 of 2) sorted by relevance
294 struct sockaddr_in *addr_in = (struct sockaddr_in *)*addr; in sockaddr_from_nsos_mid() local296 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() local309 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()[all …]
431 const struct sockaddr_in *addr_in = in sockaddr_to_nsos_mid() local436 if (addrlen < sizeof(*addr_in)) { in sockaddr_to_nsos_mid()441 addr_in_mid->sin_port = addr_in->sin_port; in sockaddr_to_nsos_mid()442 addr_in_mid->sin_addr = addr_in->sin_addr.s_addr; in sockaddr_to_nsos_mid()449 const struct sockaddr_in6 *addr_in = in sockaddr_to_nsos_mid() local454 if (addrlen < sizeof(*addr_in)) { in sockaddr_to_nsos_mid()459 addr_in_mid->sin6_port = addr_in->sin6_port; in sockaddr_to_nsos_mid()460 memcpy(addr_in_mid->sin6_addr, addr_in->sin6_addr.s6_addr, in sockaddr_to_nsos_mid()462 addr_in_mid->sin6_scope_id = addr_in->sin6_scope_id; in sockaddr_to_nsos_mid()525 struct sockaddr_in addr_in; in sockaddr_from_nsos_mid() local[all …]