Lines Matching refs:sk1
92 int sk1, sk2;
146 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP);
158 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val));
165 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe));
169 test_bind(sk1, &loop1.sa, sizeof(loop1));
212 test_sendmsg(sk1, &outmessage, 0, strlen(message)+1);
234 /* Get the communication up message on sk1. */
236 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL);
261 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len);
292 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL,
304 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, strlen(ttlmsg) + 1);
317 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, strlen(nottlmsg)+1);
332 test_sendmsg(sk1, &outmessage, MSG_NOSIGNAL, sizeof(ttlfrag));
360 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL);
377 error = test_recvmsg(sk1, &inmessage, MSG_WAITALL);
393 close(sk1);