aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2015-07-27 22:35:54 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2015-07-27 22:35:54 +0000
commit267dbe63a1dfb8e05eae5f1fad1ed7cc5f7b4b27 (patch)
treef1179566bac6f57b55fdd18d67dba4a25da83497 /sys/netinet/sctputil.c
parent7d477dc35a25405bcc41870a66845ae1aa7d72f3 (diff)
downloadsrc-267dbe63a1dfb8e05eae5f1fad1ed7cc5f7b4b27.tar.gz
src-267dbe63a1dfb8e05eae5f1fad1ed7cc5f7b4b27.zip
Provide consistent error causes whenever an ABORT chunk is sent.
MFC after: 1 week
Notes
Notes: svn path=/head/; revision=285925
Diffstat (limited to 'sys/netinet/sctputil.c')
-rw-r--r--sys/netinet/sctputil.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/netinet/sctputil.c b/sys/netinet/sctputil.c
index b613992fb5ae..069ed34c346a 100644
--- a/sys/netinet/sctputil.c
+++ b/sys/netinet/sctputil.c
@@ -1445,6 +1445,7 @@ sctp_timeout_handler(void *t)
struct sctp_tcb *stcb;
struct sctp_nets *net;
struct sctp_timer *tmr;
+ struct mbuf *op_err;
#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)
struct socket *so;
@@ -1756,7 +1757,9 @@ sctp_timeout_handler(void *t)
break;
}
SCTP_STAT_INCR(sctps_timoshutdownguard);
- sctp_abort_an_association(inp, stcb, NULL, SCTP_SO_NOT_LOCKED);
+ op_err = sctp_generate_cause(SCTP_BASE_SYSCTL(sctp_diag_info_code),
+ "Shutdown guard timer expired");
+ sctp_abort_an_association(inp, stcb, op_err, SCTP_SO_NOT_LOCKED);
/* no need to unlock on tcb its gone */
goto out_decr;