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