diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-01-16 14:41:44 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-01-16 14:41:44 +0000 |
commit | 9b0e77811d60c22821172c855fb8186925eb6af4 (patch) | |
tree | e5d85483051dc50656e3439d2b1dbb927eb841fe /sys/netinet/sctp_sysctl.c | |
parent | 65380e690e927bda1081b63c1ac0aaafe11f376d (diff) | |
download | FreeBSD-src-9b0e77811d60c22821172c855fb8186925eb6af4.zip FreeBSD-src-9b0e77811d60c22821172c855fb8186925eb6af4.tar.gz |
MFC r287282:
Fix the exporting of SCTP association states to userland. Without this,
associations in SHUTDOWN-PENDING were never reported correctly.
Diffstat (limited to 'sys/netinet/sctp_sysctl.c')
-rw-r--r-- | sys/netinet/sctp_sysctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_sysctl.c b/sys/netinet/sctp_sysctl.c index 6eef6b9..1b35af7 100644 --- a/sys/netinet/sctp_sysctl.c +++ b/sys/netinet/sctp_sysctl.c @@ -453,7 +453,7 @@ sctp_sysctl_handle_assoclist(SYSCTL_HANDLER_ARGS) if (stcb->asoc.primary_destination != NULL) xstcb.primary_addr = stcb->asoc.primary_destination->ro._l_addr; xstcb.heartbeat_interval = stcb->asoc.heart_beat_delay; - xstcb.state = SCTP_GET_STATE(&stcb->asoc); /* FIXME */ + xstcb.state = (uint32_t) sctp_map_assoc_state(stcb->asoc.state); /* 7.0 does not support these */ xstcb.assoc_id = sctp_get_associd(stcb); xstcb.peers_rwnd = stcb->asoc.peers_rwnd; |