Lines Matching refs:local
219 struct sockaddr *local, socklen_t *addrlen) in get_local_ipv6() argument
233 memcpy(&net_sin6(local)->sin6_addr, addr, sizeof(*addr)); in get_local_ipv6()
234 local->sa_family = AF_INET6; in get_local_ipv6()
241 struct sockaddr *local, socklen_t *addrlen) in get_local_ipv4() argument
255 memcpy(&net_sin(local)->sin_addr, addr, sizeof(*addr)); in get_local_ipv4()
256 local->sa_family = AF_INET; in get_local_ipv4()
264 struct sockaddr local; in create_socket() local
271 memset(&local, 0, sizeof(local)); in create_socket()
283 addr = (struct sockaddr_ll *)&local; in create_socket()
303 ret = get_local_ipv6(iface, peer, &local, &addrlen); in create_socket()
308 net_addr_ntop(AF_INET6, &net_sin6(&local)->sin6_addr, in create_socket()
312 ret = get_local_ipv4(iface, peer, &local, &addrlen); in create_socket()
317 net_addr_ntop(AF_INET, &net_sin(&local)->sin_addr, in create_socket()
327 ret = bind(sock, &local, addrlen); in create_socket()