Lines Matching refs:addr_in

431 		const struct sockaddr_in *addr_in =  in sockaddr_to_nsos_mid()  local
436 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() local
454 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
527 addr_in.sin_family = AF_INET; in sockaddr_from_nsos_mid()
528 addr_in.sin_port = addr_in_mid->sin_port; in sockaddr_from_nsos_mid()
529 addr_in.sin_addr.s_addr = addr_in_mid->sin_addr; in sockaddr_from_nsos_mid()
531 memcpy(addr, &addr_in, MIN(*addrlen, sizeof(addr_in))); in sockaddr_from_nsos_mid()
532 *addrlen = sizeof(addr_in); in sockaddr_from_nsos_mid()
539 struct sockaddr_in6 addr_in; in sockaddr_from_nsos_mid() local
541 addr_in.sin6_family = AF_INET6; in sockaddr_from_nsos_mid()
542 addr_in.sin6_port = addr_in_mid->sin6_port; in sockaddr_from_nsos_mid()
543 memcpy(addr_in.sin6_addr.s6_addr, addr_in_mid->sin6_addr, in sockaddr_from_nsos_mid()
544 sizeof(addr_in.sin6_addr.s6_addr)); in sockaddr_from_nsos_mid()
545 addr_in.sin6_scope_id = addr_in_mid->sin6_scope_id; in sockaddr_from_nsos_mid()
547 memcpy(addr, &addr_in, MIN(*addrlen, sizeof(addr_in))); in sockaddr_from_nsos_mid()
548 *addrlen = sizeof(addr_in); in sockaddr_from_nsos_mid()