Lines Matching refs:sk2
92 int sk1, sk2; in main() local
147 sk2 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main()
150 error = getsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &orig_len, in main()
166 test_setsockopt(sk2, SCTP_EVENTS, &subscribe, sizeof(subscribe)); in main()
170 test_bind(sk2, &loop2.sa, sizeof(loop2)); in main()
182 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &len, in main()
189 test_listen(sk2, 1); in main()
225 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
244 error = setsockopt(sk2, SOL_SOCKET, SO_RCVBUF, &orig_len, in main()
253 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
343 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
348 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
397 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL); in main()
402 close(sk2); in main()