diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2021-07-09 21:17:35 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2021-07-09 21:19:25 +0000 |
commit | 105b68b42dd11bce5c554b1ef0ddf73aa069d7da (patch) | |
tree | b5abcb3da01486d91cfdd5bd2ab4ab8cd9c84816 /sys/netinet/sctputil.h | |
parent | 82626fef6253a9172163df137097f54e93e3c209 (diff) | |
download | src-105b68b42dd11bce5c554b1ef0ddf73aa069d7da.tar.gz src-105b68b42dd11bce5c554b1ef0ddf73aa069d7da.zip |
sctp: Fix errno in case of association setup failures
Do not report always ETIMEDOUT, but only when appropriate. In
other cases report ECONNABORTED.
MFC after: 3 days
Diffstat (limited to 'sys/netinet/sctputil.h')
-rw-r--r-- | sys/netinet/sctputil.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctputil.h b/sys/netinet/sctputil.h index c81633223224..3319eb4f455b 100644 --- a/sys/netinet/sctputil.h +++ b/sys/netinet/sctputil.h @@ -167,7 +167,7 @@ void sctp_report_all_outbound(struct sctp_tcb *, uint16_t, int); int sctp_expand_mapping_array(struct sctp_association *, uint32_t); void -sctp_abort_notification(struct sctp_tcb *, uint8_t, uint16_t, +sctp_abort_notification(struct sctp_tcb *, bool, bool, uint16_t, struct sctp_abort_chunk *, int); /* We abort responding to an IP packet for some reason */ @@ -181,7 +181,7 @@ sctp_abort_association(struct sctp_inpcb *, struct sctp_tcb *, struct mbuf *, /* We choose to abort via user input */ void sctp_abort_an_association(struct sctp_inpcb *, struct sctp_tcb *, - struct mbuf *, int); + struct mbuf *, bool, int); void sctp_handle_ootb(struct mbuf *, int, int, |