Lines Matching refs:sk1
75 int sk1, sk2;
124 sk1 = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP);
130 test_setsockopt(sk1, SCTP_MAXSEG, &val, sizeof(val));
137 test_setsockopt(sk1, SCTP_EVENTS, &subscribe, sizeof(subscribe));
141 test_bind(sk1, &loop1.sa, sizeof(loop1));
168 test_sctp_sendmsg(sk1, message, strlen(message) + 1,
198 /* Get the communication up message on sk1. */
202 error = test_sctp_recvmsg(sk1, big_buffer, buflen,
228 error = getsockopt(sk1, IPPROTO_SCTP, SCTP_STATUS, &gstatus, &len);
242 test_sctp_sendmsg(sk1, fillmsg, gstatus.sstat_rwnd+RWND_SLOP,
247 test_sctp_sendmsg(sk1, ttlmsg, strlen(ttlmsg) + 1,
254 test_sctp_sendmsg(sk1, nottlmsg, strlen(nottlmsg) + 1,
263 test_sctp_sendmsg(sk1, ttlfrag, sizeof(ttlfrag),
303 error = test_sctp_recvmsg(sk1, big_buffer, buflen,
325 error = test_sctp_recvmsg(sk1, big_buffer, buflen,
347 test_sctp_send(sk1, message, strlen(message) + 1, &snd_sinfo,
363 close(sk1);