- From: Michael Tüxen <Michael.Tuexen AT micmac.franken.de>
- To: Horacio Sanson <hsanson AT gmail.com>
- Cc: sctp-discussion AT sctp.de
- Subject: Re: [SCTP-Discussion] Is there a SCTP_INFO sockopt like in TCP?
- Date: Sun, 19 Jul 2009 08:00:27 +0200
- List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
- List-id: SCTP Discussions <sctp-discussion.sctp.de>
Have you looked at the SCTP_GET_PEER_ADDR_INFO option.
It provides:
struct sctp_paddrinfo {
sctp_assoc_t spinfo_assoc_id;
struct sockaddr_storage spinfo_address;
int32_t spinfo_state;
uint32_t spinfo_cwnd;
uint32_t spinfo_srtt;
uint32_t spinfo_rto;
uint32_t spinfo_mtu;
};
For other things, you can enable logging (after building an
appropriate kernel).
Best regards
Michael
On Jul 19, 2009, at 3:14 AM, Horacio Sanson wrote:
I would like to get some network status values like RTT, packet loss
ratio,
CWND etc. In TCP we have
getsockopt(sock, SOL_TCP, TCP_INFO, (void *)&tcp_info,
&tcp_info_length )
Is there something similar in FreeBSD SCTP? I need this values at the
application layer (i.e. using getsockopt) because I want to adapt
how I send
sctp messages based on these values.
regards
Horacio
_______________________________________________
sctp-discussion mailing list
sctp-discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/sctp-discussion
Archive powered by MHonArc 2.6.19+.