Lines Matching refs:xstcb
388 struct xsctp_tcb xstcb; in sctp_sysctl_handle_assoclist() local
428 memset(&xstcb, 0, sizeof(xstcb)); in sctp_sysctl_handle_assoclist()
478 xstcb.last = 0; in sctp_sysctl_handle_assoclist()
479 xstcb.local_port = ntohs(inp->sctp_lport); in sctp_sysctl_handle_assoclist()
480 xstcb.remote_port = ntohs(stcb->rport); in sctp_sysctl_handle_assoclist()
482 xstcb.primary_addr = stcb->asoc.primary_destination->ro._l_addr; in sctp_sysctl_handle_assoclist()
483 xstcb.heartbeat_interval = stcb->asoc.heart_beat_delay; in sctp_sysctl_handle_assoclist()
484 xstcb.state = (uint32_t)sctp_map_assoc_state(stcb->asoc.state); in sctp_sysctl_handle_assoclist()
485 xstcb.assoc_id = sctp_get_associd(stcb); in sctp_sysctl_handle_assoclist()
486 xstcb.peers_rwnd = stcb->asoc.peers_rwnd; in sctp_sysctl_handle_assoclist()
487 xstcb.in_streams = stcb->asoc.streamincnt; in sctp_sysctl_handle_assoclist()
488 xstcb.out_streams = stcb->asoc.streamoutcnt; in sctp_sysctl_handle_assoclist()
489 xstcb.max_nr_retrans = stcb->asoc.overall_error_count; in sctp_sysctl_handle_assoclist()
490 xstcb.primary_process = 0; /* not really supported in sctp_sysctl_handle_assoclist()
492 xstcb.T1_expireries = stcb->asoc.timoinit + stcb->asoc.timocookie; in sctp_sysctl_handle_assoclist()
493 xstcb.T2_expireries = stcb->asoc.timoshutdown + stcb->asoc.timoshutdownack; in sctp_sysctl_handle_assoclist()
494 xstcb.retransmitted_tsns = stcb->asoc.marked_retrans; in sctp_sysctl_handle_assoclist()
495 xstcb.start_time.tv_sec = (uint32_t)stcb->asoc.start_time.tv_sec; in sctp_sysctl_handle_assoclist()
496 xstcb.start_time.tv_usec = (uint32_t)stcb->asoc.start_time.tv_usec; in sctp_sysctl_handle_assoclist()
497 xstcb.discontinuity_time.tv_sec = (uint32_t)stcb->asoc.discontinuity_time.tv_sec; in sctp_sysctl_handle_assoclist()
498 xstcb.discontinuity_time.tv_usec = (uint32_t)stcb->asoc.discontinuity_time.tv_usec; in sctp_sysctl_handle_assoclist()
499 xstcb.total_sends = stcb->total_sends; in sctp_sysctl_handle_assoclist()
500 xstcb.total_recvs = stcb->total_recvs; in sctp_sysctl_handle_assoclist()
501 xstcb.local_tag = stcb->asoc.my_vtag; in sctp_sysctl_handle_assoclist()
502 xstcb.remote_tag = stcb->asoc.peer_vtag; in sctp_sysctl_handle_assoclist()
503 xstcb.initial_tsn = stcb->asoc.init_seq_number; in sctp_sysctl_handle_assoclist()
504 xstcb.highest_tsn = stcb->asoc.sending_seq - 1; in sctp_sysctl_handle_assoclist()
505 xstcb.cumulative_tsn = stcb->asoc.last_acked_seq; in sctp_sysctl_handle_assoclist()
506 xstcb.cumulative_tsn_ack = stcb->asoc.cumulative_tsn; in sctp_sysctl_handle_assoclist()
507 xstcb.mtu = stcb->asoc.smallest_mtu; in sctp_sysctl_handle_assoclist()
508 xstcb.refcnt = stcb->asoc.refcnt; in sctp_sysctl_handle_assoclist()
511 error = SYSCTL_OUT(req, &xstcb, sizeof(struct xsctp_tcb)); in sctp_sysctl_handle_assoclist()
579 memset((void *)&xstcb, 0, sizeof(struct xsctp_tcb)); in sctp_sysctl_handle_assoclist()
580 xstcb.last = 1; in sctp_sysctl_handle_assoclist()
581 error = SYSCTL_OUT(req, &xstcb, sizeof(struct xsctp_tcb)); in sctp_sysctl_handle_assoclist()