Lines Matching refs:sk2
93 int sk1, sk2; in main() local
151 sk2 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
154 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &orig_len, in main()
170 test_setsockopt(sk2, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
174 test_bind(sk2, &loop2.sa, sizeof(loop2)); in main()
186 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &len, in main()
193 test_listen(sk2, 1); in main()
229 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
248 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &orig_len, in main()
257 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
347 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
352 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
401 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
406 close(sk2); in main()