summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_sysctl.c
diff options
context:
space:
mode:
authorrrs <rrs@FreeBSD.org>2009-02-13 14:43:46 +0000
committerrrs <rrs@FreeBSD.org>2009-02-13 14:43:46 +0000
commita15ded26375c05e9bab8d4e7df05af038de0f4fc (patch)
tree9484a3377c0fbb9b746e619b3004a833bacf39b6 /sys/netinet/sctp_sysctl.c
parent078b673c43cbffcc955cf60b0317f711f0d8c3e2 (diff)
downloadFreeBSD-src-a15ded26375c05e9bab8d4e7df05af038de0f4fc.zip
FreeBSD-src-a15ded26375c05e9bab8d4e7df05af038de0f4fc.tar.gz
Move the new rwnd field down to the very end
of the xsctp structure. This is where all new fields belong (not that we will be ABI compatiable with 7.x anyway.. sigh).
Diffstat (limited to 'sys/netinet/sctp_sysctl.c')
-rw-r--r--sys/netinet/sctp_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_sysctl.c b/sys/netinet/sctp_sysctl.c
index bcba5b5..a64aec4 100644
--- a/sys/netinet/sctp_sysctl.c
+++ b/sys/netinet/sctp_sysctl.c
@@ -409,8 +409,9 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS)
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 */
- /* 7.0 does not support this */
+ /* 7.0 does not support these */
xstcb.assoc_id = sctp_get_associd(stcb);
+ xstcb.peers_rwnd = stcb->asoc.peers_rwnd;
xstcb.in_streams = stcb->asoc.streamincnt;
xstcb.out_streams = stcb->asoc.streamoutcnt;
xstcb.max_nr_retrans = stcb->asoc.overall_error_count;
@@ -432,7 +433,6 @@ sctp_assoclist(SYSCTL_HANDLER_ARGS)
xstcb.cumulative_tsn = stcb->asoc.last_acked_seq;
xstcb.cumulative_tsn_ack = stcb->asoc.cumulative_tsn;
xstcb.mtu = stcb->asoc.smallest_mtu;
- xstcb.peers_rwnd = stcb->asoc.peers_rwnd;
xstcb.refcnt = stcb->asoc.refcnt;
SCTP_INP_RUNLOCK(inp);
SCTP_INP_INFO_RUNLOCK();
OpenPOWER on IntegriCloud