Lines Matching refs:pinfo
4851 struct sctp_paddrinfo pinfo; in sctp_getsockopt_peer_addr_info() local
4855 if (len < sizeof(pinfo)) { in sctp_getsockopt_peer_addr_info()
4860 len = sizeof(pinfo); in sctp_getsockopt_peer_addr_info()
4861 if (copy_from_user(&pinfo, optval, len)) { in sctp_getsockopt_peer_addr_info()
4866 transport = sctp_addr_id2transport(sk, &pinfo.spinfo_address, in sctp_getsockopt_peer_addr_info()
4867 pinfo.spinfo_assoc_id); in sctp_getsockopt_peer_addr_info()
4871 pinfo.spinfo_assoc_id = sctp_assoc2id(transport->asoc); in sctp_getsockopt_peer_addr_info()
4872 pinfo.spinfo_state = transport->state; in sctp_getsockopt_peer_addr_info()
4873 pinfo.spinfo_cwnd = transport->cwnd; in sctp_getsockopt_peer_addr_info()
4874 pinfo.spinfo_srtt = transport->srtt; in sctp_getsockopt_peer_addr_info()
4875 pinfo.spinfo_rto = jiffies_to_msecs(transport->rto); in sctp_getsockopt_peer_addr_info()
4876 pinfo.spinfo_mtu = transport->pathmtu; in sctp_getsockopt_peer_addr_info()
4878 if (pinfo.spinfo_state == SCTP_UNKNOWN) in sctp_getsockopt_peer_addr_info()
4879 pinfo.spinfo_state = SCTP_ACTIVE; in sctp_getsockopt_peer_addr_info()
4886 if (copy_to_user(optval, &pinfo, len)) { in sctp_getsockopt_peer_addr_info()