Lines Matching refs:myaddr
34 struct sockaddr *myaddr) in get_my_ipv6_addr() argument
40 &net_sin6(myaddr)->sin6_addr); in get_my_ipv6_addr()
42 memcpy(&net_sin6(myaddr)->sin6_addr, my6addr, sizeof(struct in6_addr)); in get_my_ipv6_addr()
44 net_sin6(myaddr)->sin6_port = 0U; /* let the IP stack to select */ in get_my_ipv6_addr()
49 struct sockaddr *myaddr) in get_my_ipv4_addr() argument
53 memcpy(&net_sin(myaddr)->sin_addr, in get_my_ipv4_addr()
57 net_sin(myaddr)->sin_port = 0U; /* let the IP stack to select */ in get_my_ipv4_addr()
63 struct sockaddr *myaddr, in print_connect_info() argument
70 net_sprint_ipv4_addr(&net_sin(myaddr)->sin_addr), in print_connect_info()
71 ntohs(net_sin(myaddr)->sin_port)); in print_connect_info()
84 net_sprint_ipv6_addr(&net_sin6(myaddr)->sin6_addr), in print_connect_info()
85 ntohs(net_sin6(myaddr)->sin6_port)); in print_connect_info()
105 struct sockaddr myaddr; in tcp_connect() local
128 get_my_ipv6_addr(iface, &myaddr); in tcp_connect()
129 family = addr.sa_family = myaddr.sa_family = AF_INET6; in tcp_connect()
141 get_my_ipv4_addr(iface, &myaddr); in tcp_connect()
144 family = addr.sa_family = myaddr.sa_family = AF_INET; in tcp_connect()
160 get_my_ipv4_addr(iface, &myaddr); in tcp_connect()
161 family = addr.sa_family = myaddr.sa_family = AF_INET; in tcp_connect()
172 get_my_ipv6_addr(iface, &myaddr); in tcp_connect()
173 family = addr.sa_family = myaddr.sa_family = AF_INET6; in tcp_connect()
180 print_connect_info(sh, family, &myaddr, &addr); in tcp_connect()
188 ret = net_context_bind(*ctx, &myaddr, addrlen); in tcp_connect()