Lines Matching refs:sstat
2603 struct sctp_status *sstat; local
2605 SCTP_CHECK_AND_CAST(sstat, optval, struct sctp_status, *optsize);
2606 SCTP_FIND_STCB(inp, stcb, sstat->sstat_assoc_id);
2613 sstat->sstat_state = sctp_map_assoc_state(stcb->asoc.state);
2614 sstat->sstat_assoc_id = sctp_get_associd(stcb);
2615 sstat->sstat_rwnd = stcb->asoc.peers_rwnd;
2616 sstat->sstat_unackdata = stcb->asoc.sent_queue_cnt;
2621 sstat->sstat_penddata = (stcb->asoc.cnt_on_reasm_queue +
2623 sstat->sstat_instrms = stcb->asoc.streamincnt;
2624 sstat->sstat_outstrms = stcb->asoc.streamoutcnt;
2625 sstat->sstat_fragmentation_point = sctp_get_frag_point(stcb, &stcb->asoc);
2628 memcpy(&sstat->sstat_primary.spinfo_address,
2631 ((struct sockaddr_in *)&sstat->sstat_primary.spinfo_address)->sin_port = stcb->rport;
2639 sstat->sstat_primary.spinfo_state = SCTP_UNCONFIRMED;
2642 sstat->sstat_primary.spinfo_state = SCTP_ACTIVE;
2645 sstat->sstat_primary.spinfo_state = SCTP_INACTIVE;
2647 sstat->sstat_primary.spinfo_cwnd = net->cwnd;
2648 sstat->sstat_primary.spinfo_srtt = net->lastsa >> SCTP_RTT_SHIFT;
2649 sstat->sstat_primary.spinfo_rto = net->RTO;
2650 sstat->sstat_primary.spinfo_mtu = net->mtu;
2654 sstat->sstat_primary.spinfo_mtu -= SCTP_MIN_V4_OVERHEAD;
2659 sstat->sstat_primary.spinfo_mtu -= SCTP_MIN_OVERHEAD;
2666 memset(&sstat->sstat_primary, 0, sizeof(struct sctp_paddrinfo));
2668 sstat->sstat_primary.spinfo_assoc_id = sctp_get_associd(stcb);