summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctputil.c
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2015-07-27 22:35:54 +0000
committertuexen <tuexen@FreeBSD.org>2015-07-27 22:35:54 +0000
commit63528763eb4bf746eee1fefdf2e6dbf302f7adea (patch)
treef1179566bac6f57b55fdd18d67dba4a25da83497 /sys/netinet/sctputil.c
parentb19c7b1b4ddcd5c14c11d614f57487a5debe832c (diff)
downloadFreeBSD-src-63528763eb4bf746eee1fefdf2e6dbf302f7adea.zip
FreeBSD-src-63528763eb4bf746eee1fefdf2e6dbf302f7adea.tar.gz
Provide consistent error causes whenever an ABORT chunk is sent.
MFC after: 1 week
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 b613992..069ed34 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;
OpenPOWER on IntegriCloud