On Sat, Oct 26, 2013 at 11:11 PM, Hangbin Liu <liuhangbin@xxxxxxxxx> wrote: > Hi Daniel, > > When I run sctp_status test and set max_stream >= 10, the client will > fail with "sendmsg: Invalid argument". Would you like to help have a > look at this? > > # ./sctp_status -H 127.0.0.1 -P 9998 -h 127.0.0.1 -p 9999 -s -d 2 -M 20 > remote:addr=127.0.0.1, port=distinct, family=2 > local:addr=127.0.0.1, port=distinct32, family=2 > > Starting tests... > socket(SOCK_STREAM, IPPROTO_SCTP) -> sk=3 > bind(sk=3, [a:127.0.0.1,p:distinct32]) -- attempt 1/10 > connect(sk=3) > Client: Sending packets.(1/10) > sendmsg(sk=3, assoc=0) 17768 bytes. > SNDRCV(stream=1 flags=0x1 ppid=846930886) > sendmsg(sk=3, assoc=0) 6250 bytes. > SNDRCV(stream=2 flags=0x1 ppid=1714636915) > sendmsg(sk=3, assoc=0) 23634 bytes. > SNDRCV(stream=3 flags=0x1 ppid=424238335) > sendmsg(sk=3, assoc=0) 5195 bytes. > SNDRCV(stream=4 flags=0x1 ppid=1649760492) > sendmsg(sk=3, assoc=0) 7978 bytes. > SNDRCV(stream=5 flags=0x1 ppid=1189641421) > sendmsg(sk=3, assoc=0) 22715 bytes. > SNDRCV(stream=6 flags=0x1 ppid=1350490027) > sendmsg(sk=3, assoc=0) 16883 bytes. > SNDRCV(stream=7 flags=0x1 ppid=1102520059) > sendmsg(sk=3, assoc=0) 10724 bytes. > SNDRCV(stream=8 flags=0x1 ppid=1967513926) > sendmsg(sk=3, assoc=0) 125 bytes. > SNDRCV(stream=9 flags=0x1 ppid=1540383426) > sendmsg(sk=3, assoc=0) 2133 bytes. > SNDRCV(stream=10 flags=0x1 ppid=1303455736) > > *** sendmsg: Invalid argument *** > Looks like a possible "off-by-1" bug. Feel free to fix. -vlad -- To unsubscribe from this list: send the line "unsubscribe linux-sctp" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html