During establishment of one-to-one sctp connection, below error is reported in internal server logs after accept() of sctp connection:
"Error getting socket options for socket: 13"
From the error, it seems that getsockopt() has returned an error, and according to function description in "getsockopt(2) - Linux man page" errno is set to indicate the reason.
I need your help to know how to check errno and track the reason of this failure.
FYI, from tcpdump I have below flow of messages, the connection is shutdown by server.
No. Time Source Destination Protocol Message
19716 16:47:25.174569 client server SCTP INIT
19717 16:47:25.174667 server client SCTP INIT_ACK
19718 16:47:25.174905 client server SCTP COOKIE_ECHO
19719 16:47:25.174962 server client SCTP COOKIE_ACK
19720 16:47:25.175175 server client SCTP SHUTDOWN
19721 16:47:25.175507 client server SCTP SHUTDOWN_ACK
19722 16:47:25.175537 server client SCTP SHUTDOWN_COMPLETE
Appreciate your support, Thanks in advance