Lines Matching refs:local_addr
147 struct sockaddr *local_addr, in bind_ctx() argument
156 ret = zsock_bind(sock, local_addr, addrlen); in bind_ctx()
159 local_addr->sa_family == AF_INET ? in bind_ctx()
592 static void setup_ipv6_addr(struct sockaddr_in6 *local_addr) in setup_ipv6_addr() argument
594 create_ipv6_addr(local_addr); in setup_ipv6_addr()
596 net_if_foreach(iface_ipv6_cb, &local_addr->sin6_addr); in setup_ipv6_addr()
613 static void setup_ipv4_addr(struct sockaddr_in *local_addr) in setup_ipv4_addr() argument
615 create_ipv4_addr(local_addr); in setup_ipv4_addr()
617 net_if_foreach(iface_ipv4_cb, &local_addr->sin_addr); in setup_ipv4_addr()
631 static struct sockaddr_in6 local_addr; in init_listener() local
633 setup_ipv6_addr(&local_addr); in init_listener()
637 ret = bind_ctx(ipv6, (struct sockaddr *)&local_addr, in init_listener()
638 sizeof(local_addr)); in init_listener()