Searched refs:recv_sock (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/net/ |
H A D | sk_so_peek_off.c | 67 int recv_sock = 0; in sk_peek_offset_test() local 75 s[0] = recv_sock = socket(af, type, proto); in sk_peek_offset_test() 99 recv_sock = accept(s[0], NULL, NULL); in sk_peek_offset_test() 100 if (recv_sock <= 0) { in sk_peek_offset_test() 107 offset = sk_peek_offset_get(recv_sock); in sk_peek_offset_test() 112 sk_peek_offset_set(recv_sock, 0); in sk_peek_offset_test() 113 offset = sk_peek_offset_get(recv_sock); in sk_peek_offset_test() 125 len = recv(recv_sock, buf, 1, MSG_PEEK); in sk_peek_offset_test() 130 offset = sk_peek_offset_get(recv_sock); in sk_peek_offset_test() 136 len = recv(recv_sock, buf, 2, MSG_PEEK); in sk_peek_offset_test() [all …]
|