Lines Matching refs:retval

435 	int retval;
437 retval = sctp_find_peer_fp(sctp, &spp->spp_address, &fp);
438 if (retval) {
439 return (retval);
456 int retval;
461 retval = sctp_find_peer_fp(sctp, &spp->spp_address, &fp);
462 if (retval != 0) {
463 return (retval);
583 int retval;
586 retval = sctp_find_peer_fp(sctp, &pp->sspp_addr, &fp);
587 if (retval)
588 return (retval);
792 int retval = 0;
815 retval = proto_opt_check(level, name, buflen, NULL, sctp_opt_arr,
817 if (retval != 0) {
819 if (retval < 0) {
820 retval = proto_tlitosyserr(-retval);
822 return (retval);
880 retval = sctp_get_paddrinfo(sctp, ptr, optlen);
894 retval = sctp_getmyaddrs(sctp, ptr, &addr_cnt);
895 if (retval == 0)
918 retval = sctp_getpeeraddrs(sctp, ptr, &addr_cnt);
919 if (retval == 0)
983 retval = ENOPROTOOPT;
987 return (retval);
990 retval = EINVAL;
1027 retval = conn_opt_get(&coas, level, name, ptr);
1030 if (retval == -1)
1032 *optlen = retval;
1042 int retval = 0, addrcnt;
1057 retval = 0;
1070 retval = proto_opt_check(level, name, inlen, NULL, sctp_opt_arr,
1072 if (retval != 0) {
1073 if (retval < 0) {
1074 retval = proto_tlitosyserr(-retval);
1085 retval = ENOBUFS;
1089 retval = EINVAL;
1100 retval = ENOBUFS;
1137 retval = EINVAL;
1143 retval = EINVAL;
1153 retval = sctp_set_rtoinfo(sctp, invalp);
1156 retval = sctp_set_assocparams(sctp, invalp);
1159 retval = sctp_set_initmsg(sctp, invalp, inlen);
1166 retval = EINVAL;
1174 retval = sctp_set_peerprim(sctp, invalp);
1177 retval = sctp_set_prim(sctp, invalp);
1188 retval = sctp_set_peer_addr_params(sctp, invalp);
1191 retval = sctp_set_def_send_params(sctp, invalp);
1222 retval = EINVAL;
1232 retval = sctp_bind_add(sctp, invalp, addrcnt,
1235 retval = sctp_bind_del(sctp, invalp, addrcnt,
1257 retval = ENOPROTOOPT;
1264 retval = ENOPROTOOPT;
1274 retval = EINVAL;
1282 retval = EINVAL;
1305 retval = EINVAL;
1315 retval = EINVAL;
1323 retval = conn_opt_set(&coas, level, name, inlen, (uchar_t *)invalp,
1325 if (retval != 0)
1338 retval = sctp_build_hdrs(sctp, KM_NOSLEEP);
1339 if (retval != 0)
1355 return (retval);