LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-08-2013, 10:13 AM   #1
andrzej_d8
LQ Newbie
 
Registered: Sep 2013
Posts: 1

Rep: Reputation: Disabled
SCTP remove FORWARD_TSN


I use linux kernel to create SCTP association.
It sends SCTP INIT message which contains "forward TSN supported parameter" but this parameter is not accepted by the server.
Is there any way to send SCTP INIT without this parameter ?

Here is my code :

#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/sctp.h>

int main(int argc, char **argv)
{
struct sockaddr_in saddr;
struct sctp_initmsg initmsg;
int cfd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
memset(&initmsg, 0, sizeof(initmsg));
initmsg.sinit_num_ostreams = 3;
initmsg.sinit_max_instreams = 3;
initmsg.sinit_max_attempts = 2;
setsockopt(cfd, IPPROTO_SCTP, SCTP_INITMSG, &initmsg, sizeof(initmsg));
bzero((void *)&saddr, sizeof(saddr));
saddr.sin_family = AF_INET;
inet_pton(AF_INET, "10.209.1.1", &saddr.sin_addr);
saddr.sin_port = htons(2905);
connect(cfd, (struct sockaddr *)&saddr, sizeof(saddr));
usleep(3000000);
close(cfd);
return 0;
}

This is INIT message :

Stream Control Transmission Protocol, Src Port: 39574 (39574), Dst Port: 2905 (2905)
Source port: 39574
Destination port: 2905
Verification tag: 0x00000000
Checksum: 0x00000000 (not verified)
INIT chunk (Outbound streams: 3, inbound streams: 3)
Chunk type: INIT (1)
Chunk flags: 0x00
Chunk length: 52
Initiate tag: 0xe2c1137e
Advertised receiver window credit (a_rwnd): 114688
Number of outbound streams: 3
Number of inbound streams: 3
Initial TSN: 3111506856
IPv4 address parameter (Address: 10.209.1.1)
IPv4 address parameter (Address: 10.151.1.2)
Supported address types parameter (Supported types: IPv4)
ECN parameter
Forward TSN supported parameter

I tried Ubuntu, Fedora, Opensuse and it's always the same problem.
 
Old 09-10-2013, 03:45 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,854

Rep: Reputation: 161Reputation: 161
What do you get when server reject the SCTP parameter, connection fail or something else?
 
Old 09-12-2013, 04:46 AM   #3
dt64
Member
 
Registered: Sep 2012
Distribution: RHEL5/6, CentOS5/6
Posts: 218

Rep: Reputation: 38
Do you get anything back from the remote system?
At least it should send you a INIT_ACK according to RFC2960 section 3.3.3
What SCTP stack do you use? I might be wrong, but I'm not aware that Linux would support SCTP out of the box. At least none of the systems using SCTP I've seen use Linux inbuilt SCTP.
What is your use case for using SCTP?
What kind of system you want to connect to? I've found that different implementations interpret the RFCs differently and therefore aren't really compatible. Some even just set own "standards" and see the RFCs as what they are - recommendations you may use or you may ignore.
Do you use SCTP as per RFC2960 or 4960? Many people consider 2960 as obsolete, but may others keep ignoring 4960 and only accept 2960.
Looks like you are doing multi-homing as well. Can your system talk to both dest IPs ok?

Please provide few more details and we'll see what we can do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SCTP support in linux ahsanali004 Linux - Newbie 9 01-19-2011 08:56 AM
kernel version for "sctp: make sctp over IPv6 work with IPsec" patch yhclqo Linux - Kernel 2 08-27-2010 01:00 AM
Can kernel SCTP co-exist with different SCTP in user space? JohnJLewis Linux - Kernel 0 07-19-2010 01:29 PM
[SOLVED] SCTP implementations plokol Programming 3 12-22-2009 02:46 PM
sctp.h and ext_socket.h anirudhraami Red Hat 1 05-29-2005 03:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration