Lines Matching defs:sk2
65 int sk1, sk2;
92 sk2 = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);
96 test_enable_assoc_change(sk2);
100 test_bind(sk2, &loop2.sa, sizeof(loop2));
102 /* Mark sk2 as being able to accept new associations. */
103 test_listen(sk2, 1);
106 * and sk2 to be 5 seconds.
110 test_setsockopt(sk2, SCTP_AUTOCLOSE, &autoclose, sizeof(autoclose));
132 /* Get the communication up message on sk2. */
133 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL);
145 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL);
158 /* Get the shutdown complete notification from sk2. */
159 error = test_recvmsg(sk2, &inmessage, MSG_WAITALL);
168 close(sk2);