Lines Matching refs:AF_INET
25 ret = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in prepare_listen_sock_udp_v4()
30 zassert_equal(addr->sin_family, AF_INET, "Invalid family"); in prepare_listen_sock_udp_v4()
66 *sock = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in prepare_sock_udp_v4()
69 sockaddr->sin_family = AF_INET; in prepare_sock_udp_v4()
71 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_udp_v4()
103 *sock = zsock_socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in prepare_sock_tcp_v4()
106 sockaddr->sin_family = AF_INET; in prepare_sock_tcp_v4()
108 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_tcp_v4()
140 *sock = zsock_socket(AF_INET, SOCK_STREAM, proto); in prepare_sock_tls_v4()
143 sockaddr->sin_family = AF_INET; in prepare_sock_tls_v4()
145 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_tls_v4()
178 *sock = zsock_socket(AF_INET, SOCK_DGRAM, proto); in prepare_sock_dtls_v4()
181 sockaddr->sin_family = AF_INET; in prepare_sock_dtls_v4()
183 rv = zsock_inet_pton(AF_INET, addr, &sockaddr->sin_addr); in prepare_sock_dtls_v4()