All of lore.kernel.org
 help / color / mirror / Atom feed
* lksctp-tools:sctp_test fails when not using sock_stream
@ 2015-09-09  8:25 kunapaneni prashanth
  2015-09-09 21:14 ` Marcelo Ricardo Leitner
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kunapaneni prashanth @ 2015-09-09  8:25 UTC (permalink / raw)
  To: linux-sctp

Hi,
 in our setup, i am trying out sctp tests using lksctp tools between
two hosts connected back to back.

H1(5.5.5.8)  --------------   H2 (5.5.5.5)


following are the commands i used.

Case 1:
====client:
sctp_test -H 5.5.5.8 -P 24241 -h 5.5.5.5 -p 24240 -s

server:
sctp_test -h 5.5.5.8 -p 24241 -H 5.5.5.5 -P 24240 -l


This test case fails, with client sending a abort after INIT/INIT-ACK.

If i run same test case with "-T" option, it is successful.

i,e
Case 2:
====
client:
sctp_test -H 5.5.5.8 -P 24241 -h 5.5.5.5 -p 24240 -s -T

server:
sctp_test -h 5.5.5.8 -p 24241 -H 5.5.5.5 -P 24240 -l




i observed that in case 1, sctp_test never calls "connect", why is it
so? shouldnt a connect be called.


I modified the code as follows to make sure a connect is issued. After
this everything works fine.

Please confirm.

1386c1386
<         if (socket_type = SOCK_STREAM || connectx_count = 0)
---
>         if (socket_type = SOCK_STREAM && connectx_count = 0)



Thank you,
Prashanth

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-09-16  8:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-09  8:25 lksctp-tools:sctp_test fails when not using sock_stream kunapaneni prashanth
2015-09-09 21:14 ` Marcelo Ricardo Leitner
2015-09-09 21:19 ` Vlad Yasevich
2015-09-10  7:19 ` kunapaneni prashanth
2015-09-15 18:10 ` Vlad Yasevich
2015-09-16  8:54 ` kunapaneni prashanth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.