Lines Matching defs:error

3569 sctp_process_cmsgs_for_init(struct sctp_tcb *stcb, struct mbuf *control, int *error)
3586 *error = EINVAL;
3592 *error = EINVAL;
3597 *error = EINVAL;
3606 *error = EINVAL;
3665 *error = EINVAL;
3676 *error = EINVAL;
3681 *error = ENOBUFS;
3689 *error = EINVAL;
3699 *error = EINVAL;
3708 *error = EINVAL;
3713 *error = ENOBUFS;
3720 *error = ENOBUFS;
3738 int *error)
3756 *error = EINVAL;
3762 *error = EINVAL;
3767 *error = EINVAL;
3777 *error = EINVAL;
3791 *error = EINVAL;
4200 * a NO_ROUTE_TO_HOST type error. We probably should
4316 int error;
4505 if ((error = sa6_recoverscope(&lsa6_storage)) != 0) {
4506 SCTPDBG(SCTP_DEBUG_OUTPUT3, "recover scope fails error %d\n", error);
4508 return (error);
4689 int error;
4945 if ((error = sctp_lowlevel_chunk_output(inp, stcb, net,
4952 SCTPDBG(SCTP_DEBUG_OUTPUT4, "Gak send error %d\n", error);
4953 if (error == ENOBUFS) {
5008 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error %d\n", plen);
5038 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error chklist %d\n", plen);
5045 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error supaddrtype %d\n", plen);
5052 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error random %d\n", plen);
5062 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error setprim %d\n", plen);
5070 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error ipv4 addr %d\n", plen);
5077 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error ipv6 addr %d\n", plen);
5084 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error cookie-preserve %d\n", plen);
5094 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error prsctp/nat support %d\n", plen);
5101 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error ecn %d\n", plen);
5108 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error adapatation %d\n", plen);
5115 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Invalid size - error success %d\n", plen);
5306 * of any un-understood parameters that require an error. Also we
5528 int error;
5544 * Send an ABORT, without the new address error
5560 * Send an ABORT, without an specific error cause.
6083 /* tack on the operational error if present */
6155 if ((error = sctp_lowlevel_chunk_output(inp, NULL, NULL, to, m, 0, NULL, 0, 0,
6161 SCTPDBG(SCTP_DEBUG_OUTPUT4, "Gak send error %d\n", error);
6162 if (error == ENOBUFS) {
6357 int error = 0;
6369 error = EINVAL;
6375 error = EINVAL;
6386 error = ECONNRESET;
6392 error = ENOMEM;
6449 return (error);
6467 /* error */
6562 /* error */
6833 ssize_t left, willcpy, cancpy, error;
6848 error = uiomove(mtod(at, caddr_t), (int)willcpy, uio);
6849 if (error) {
7866 int no_fragmentflg, error;
8108 error = 0;
8238 if ((error = sctp_lowlevel_chunk_output(inp, stcb, net,
8249 * error, we could not
8252 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
8256 if (error == ENOBUFS) {
8260 /* error, could not output */
8261 if (error == EHOSTUNREACH) {
8306 if (error != 0) {
8515 if ((error = sctp_lowlevel_chunk_output(inp, stcb, net,
8527 * error, we could not
8530 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
8534 if (error == ENOBUFS) {
8538 if (error == EHOSTUNREACH) {
8583 if (error != 0) {
8851 if ((error = sctp_lowlevel_chunk_output(inp,
8867 /* error, we could not output */
8868 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
8872 if (error == ENOBUFS) {
8876 if (error == EHOSTUNREACH) {
9486 int error, i, one_chunk, fwd_tsn, ctl_cnt, tmr_started;
9495 tmr_started = ctl_cnt = bundle_at = error = 0;
9562 if ((error = sctp_lowlevel_chunk_output(inp, stcb, chk->whoTo,
9570 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
9571 if (error == ENOBUFS) {
9575 return (error);
9839 if ((error = sctp_lowlevel_chunk_output(inp, stcb, net,
9847 /* error, we could not output */
9848 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
9849 if (error == ENOBUFS) {
9853 return (error);
10035 int error = 0, num_out, tot_out = 0, ret = 0, reason_code;
10206 error = sctp_med_chunk_output(inp, stcb, asoc, &num_out,
10209 if (error) {
10210 SCTPDBG(SCTP_DEBUG_OUTPUT1, "Error %d was returned from med-c-op\n", error);
10212 sctp_log_maxburst(stcb, asoc->primary_destination, error, burst_cnt, SCTP_MAX_BURST_ERROR_STOP);
10215 sctp_log_cwnd(stcb, NULL, error, SCTP_SEND_NOW_COMPLETES);
10946 int error;
10972 /* link in any error */
11018 if ((error = sctp_lowlevel_chunk_output(stcb->sctp_ep, stcb, net,
11025 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
11026 if (error == ENOBUFS) {
11045 int error;
11065 if ((error = sctp_lowlevel_chunk_output(stcb->sctp_ep, stcb, net,
11073 SCTPDBG(SCTP_DEBUG_OUTPUT3, "Gak send error %d\n", error);
11074 if (error == ENOBUFS) {
12167 /* error, can't do that */
12372 int *error,
12382 *error = ENOBUFS;
12416 int *error)
12429 *error = 0;
12437 *error = ECONNRESET;
12443 *error = ENOMEM;
12482 *error = sctp_copy_one(sp, uio, resv_in_first);
12484 if (*error) {
12511 int error, use_sndinfo = 0;
12538 error = sctp_lower_sosend(so, addr_to_use, uio, top,
12544 return (error);
12561 int error, len;
12587 error = 0;
12595 error = EINVAL;
12599 return (error);
12624 error = ENOTCONN;
12639 error = EINVAL;
12649 error = EINVAL;
12657 error = EAFNOSUPPORT;
12669 error = EINVAL;
12686 error = sctp_sendall(inp, uio, top, srcv);
12692 error = EINVAL;
12736 error = EINVAL;
12743 error = EINVAL;
12752 stcb = sctp_findassociation_cmsgs(&t_inp, port, control, &net, &error);
12761 if (error) {
12766 error = ENOTCONN;
12773 error = ENOENT;
12786 error = ENOENT;
12796 stcb = sctp_aloc_assoc(inp, addr, &error, 0, vrf_id,
12830 if (sctp_process_cmsgs_for_init(stcb, control, &error)) {
12867 error = EINVAL;
12885 error = EMSGSIZE;
12912 error = EMSGSIZE;
12914 error = EWOULDBLOCK;
12926 error = ECONNRESET;
12937 error = EINVAL;
12946 error = EAGAIN;
12948 error = EINVAL;
12950 SCTP_LTRACE_ERR_RET(inp, stcb, net, SCTP_FROM_SCTP_OUTPUT, error);
12970 error = ECONNRESET;
12989 error = EINVAL;
13012 error = EMSGSIZE;
13019 error = ENOMEM;
13037 error = uiomove((caddr_t)ph, (int)tot_out, uio);
13038 if (error) {
13085 /* huh? software error */
13087 error = EFAULT;
13096 error = EMSGSIZE;
13105 error = EINVAL;
13141 be.error = 0;
13143 error = sbwait(&so->so_snd);
13145 if (error || so->so_error || be.error) {
13146 if (error == 0) {
13148 error = so->so_error;
13149 if (be.error) {
13150 error = be.error;
13188 error = EINVAL;
13202 error = EINVAL;
13209 sp = sctp_copy_it_in(stcb, asoc, srcv, uio, net, max_len, user_marks_eor, &error);
13210 if (error) {
13253 error = EINVAL;
13279 mm = sctp_copy_resume(uio, (int)max_len, user_marks_eor, &error, &sndout, &new_tail);
13280 if ((mm == NULL) || error) {
13302 error = ECONNRESET;
13480 be.error = 0;
13482 error = sbwait(&so->so_snd);
13485 if (error || so->so_error || be.error) {
13486 if (error == 0) {
13488 error = so->so_error;
13489 if (be.error) {
13490 error = be.error;
13548 error = sctp_msg_append(stcb, net, top, srcv, 0);
13560 if (error) {
13568 error = 0;
13753 stcb->asoc.total_output_queue_size, error);
13786 return (error);