sctplab/usrsctp

sample program echo_server response abort message

ohsewon opened this issue · 3 comments

my env
env

container base image is ubuntu 20.04 and my host PC also ubuntu 20.04

default sample program return abort message

I didn't edit any codes.

server

/usrsctp/programs# ./echo_server

client

/usrsctp/programs# ./client 192.168.1.64 7

tcp_dump result

10:20:20.166425 IP 192.168.1.128.56702 > 192.168.1.64.7: sctp (1) [INIT] [init tag: 3064408784] [rwnd: 131072] [OS: 10] [MIS: 2048] [init TSN: 1683704726] 

10:20:20.166584 IP 192.168.1.64.7 > 192.168.1.128.56702: sctp (1) [ABORT] 

10:20:20.166764 IP 192.168.1.64.7 > 192.168.1.128.56702: sctp (1) [INIT ACK] [init tag: 3962146628] [rwnd: 131072] [OS: 10] [MIS: 2048] [init TSN: 2044396862] 

10:20:20.166787 IP 192.168.1.128.56702 > 192.168.1.64.7: sctp (1) [ABORT] 

How to fix it??

server

/usrsctp/programs# ./echo_server 11111 22222

client

/usrsctp/programs# ./client 192.168.1.64 7 0 22222 11111

this is working.
what is diff??

And echo_server cant' connect with socat

# socat - sctp:192.168.1.64:7
./echo_server

3 questions

  1. how to connect client and echo_server without udp_encap
  2. diff with and without udp_encap
  3. how to connect echo_server with socat

@stewrtrs
thx for reply.
then, when should I exclude sctp kernel module? when build or runtime or both??

both case worked well.