Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Sep 2011 19:23:09 +0200
From:      =?iso-8859-1?Q?Michael_T=FCxen?= <Michael.Tuexen@lurchi.franken.de>
To:        jyl_2006 <yilinjing2006@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: message from sctp getsockopt or sctp_opt_info show error
Message-ID:  <C6C27F5F-6C41-42BC-9949-89335D59FF10@lurchi.franken.de>
In-Reply-To: <1316871818655-4836594.post@n5.nabble.com>
References:  <1316871818655-4836594.post@n5.nabble.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sep 24, 2011, at 3:43 PM, jyl_2006 wrote:

> Recently , I use getsockopt or sctp_opt_info to get the information of =
sctp
> association message, both two function return value of 0, and that =
means
> they work well, but the result of testing show some error.
>=20
> Here are the result that getting from function getsockopt or =
sctp_opt_info:
>=20
> NO. ASSOC-ID STATE             RWND     UNACKDATA PENDDATA INSTRMS =
OUTSTRMS
> FRAG-POINT SPINFO-STATE SPINFO-CWDN SPINFO-SRTT SPINFO-RTO SPINFO-MTU
> 1   36       ESTABLISHED       57344    0         0        10      10  =
   =20
> 1452       ACTIVE       4380        0           3000       1500
>=20
> other datas have same value with the data show above.
>=20
> But the message I get from wireshark ,show the value of RWND is =
changed
> ,when I get a sack.
It seems that you are using multiple socket options to get the above =
values.
It doesn't matter whether you use getsockopt() or sctp_opt_info() on =
FreeBSD.

Regarding the RWND: I assume that you print sasoc_peer_rwnd field of the
sctp_assocparams structure retrieved via the SCTP_ASSOCINFO socket =
option.

The number provided by the stack is the a_rwnd provided by the peer =
minus
the outstanding data. Doesn't that match you observation? If not, please
let me know how to reproduce the problem and which version of FreeBSD =
you
are using.

Best regards
Michael
>=20
> So can anyone point out something we did wrong or steps we missed?=20
> Thanks in advance.=20
>=20
> --
> View this message in context: =
http://freebsd.1045724.n5.nabble.com/message-from-sctp-getsockopt-or-sctp-=
opt-info-show-error-tp4836594p4836594.html
> Sent from the freebsd-net mailing list archive at Nabble.com.
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C6C27F5F-6C41-42BC-9949-89335D59FF10>