Searched refs:sock_s (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/tests/net/socket/misc/src/ |
D | main.c | 169 void test_so_bindtodevice(int sock_c, int sock_s, struct sockaddr *peer_addr_1, in test_so_bindtodevice() argument 184 ret = zsock_bind(sock_s, bind_addr, bind_addrlen); in test_so_bindtodevice() 190 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice() 246 ret = zsock_recv(sock_s, recv_buf, sizeof(recv_buf), ZSOCK_MSG_DONTWAIT); in test_so_bindtodevice() 254 ret = zsock_setsockopt(sock_s, SOL_SOCKET, SO_BINDTODEVICE, &ifreq, in test_so_bindtodevice() 283 ret = zsock_recv(sock_s, recv_buf, sizeof(recv_buf), ZSOCK_MSG_DONTWAIT); in test_so_bindtodevice() 290 ret = zsock_close(sock_s); in test_so_bindtodevice() 299 int sock_s; in test_ipv4_so_bindtodevice() local 318 sock_s = zsock_socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_ipv4_so_bindtodevice() 319 zassert_true(sock_s >= 0, "socket open failed"); in test_ipv4_so_bindtodevice() [all …]
|
/Zephyr-latest/tests/net/socket/udp/src/ |
D | main.c | 1119 void test_msg_trunc(int sock_c, int sock_s, struct sockaddr *addr_c, in test_msg_trunc() argument 1126 rv = zsock_bind(sock_s, addr_s, addrlen_s); in test_msg_trunc() 1141 rv = zsock_recv(sock_s, str_buf, 2, ZSOCK_MSG_TRUNC); in test_msg_trunc() 1147 rv = zsock_recv(sock_s, str_buf, sizeof(str_buf), ZSOCK_MSG_DONTWAIT); in test_msg_trunc() 1157 rv = zsock_recv(sock_s, str_buf, 2, ZSOCK_MSG_TRUNC | ZSOCK_MSG_PEEK); in test_msg_trunc() 1161 rv = zsock_recv(sock_s, str_buf, sizeof(str_buf), ZSOCK_MSG_TRUNC); in test_msg_trunc() 1169 rv = zsock_close(sock_s); in test_msg_trunc() 1203 static void test_dgram_overflow(int sock_c, int sock_s, in test_dgram_overflow() argument 1210 rv = zsock_bind(sock_s, addr_s, addrlen_s); in test_dgram_overflow() 1225 rv = zsock_close(sock_s); in test_dgram_overflow() [all …]
|