From: Vlad Yasevich <vyasevich@gmail.com>
To: linux-sctp@vger.kernel.org
Subject: Re: lksctp-tools:sctp_test fails when not using sock_stream
Date: Wed, 09 Sep 2015 21:19:03 +0000 [thread overview]
Message-ID: <55F0A247.1020605@gmail.com> (raw)
In-Reply-To: <CABZU2_R03ZdCkC=YyTGhaM7gegGufkgB+PgBqX=0vt9Zf7qtDw@mail.gmail.com>
On 09/09/2015 04:13 AM, kunapaneni prashanth wrote:
> 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.
The test runs fine in my environment. Which kernel are you using?
>
> 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.
>
No, the connect is not required when using SOCK_SEQPACKET sockets and
that is what the test tries to do. Forcing it to always connect isn't
the right thing. You need to figure our why you are getting an ABORT.
-vlad
>
>
> 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
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2015-09-09 21:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2015-09-10 7:19 ` kunapaneni prashanth
2015-09-15 18:10 ` Vlad Yasevich
2015-09-16 8:54 ` kunapaneni prashanth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55F0A247.1020605@gmail.com \
--to=vyasevich@gmail.com \
--cc=linux-sctp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.