LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-15-2008, 02:04 AM   #1
praveendandin
LQ Newbie
 
Registered: Feb 2008
Posts: 1

Rep: Reputation: 0
Socket type not supported error for IPPROTO_SCTP


Hi all,
This is my first query to this group.

When I try with the following program :
int main(int argc, char **argv)
4 {
5 int sock_fd, msg_flags;
6 char readbuf [BUFFSIZE];
7 struct sockaddr_in servaddr, cliaddr;
8 struct sctp_sndrcvinfo sri;
9 struct sctp_event_subscribe evnts;
10 int stream_increment = 1;
11 socklen_t len;
12 size_t rd_sz;

13 if (argc == 2)
14 stream_increment = atoi (argv[1]);
15 sock_fd = Socket (AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP);16 bzero (&servaddr, sizeof(servaddr));
17 servaddr.sin_family = AF_INET;

SCTP socket is not created and the error generated is "Socket type not supported".

I am using the following kernel version:

(sctpdemo)$ uname -a
Linux titan 2.6.9-22.ELsmp #1 SMP Mon Sep 19 18:32:14 EDT 2005 i686 i686 i386 GNU/Linux

Please let me know the following:
1) Should I install any RPM so that SCTP socket type is supported?
2) If RPM is to be installed then please let me know the version of that RPM for the kernel I have and its link where can I get that RPM?
3) Any additional changes that I should make so that the socket is created successfully?

Kindly respond to this query as soon as possible as I am stuck up at first level of SCTP itself.

Thanks in advance,
Praveen Dandin
 
Old 03-06-2008, 09:21 AM   #2
gaurav_katiyar
LQ Newbie
 
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Try this command
$ modprobe sctp
 
Old 06-09-2008, 10:34 AM   #3
bkapashi
LQ Newbie
 
Registered: Jun 2008
Posts: 1

Rep: Reputation: 0
Hi,
I am also getting the same error. I have installed the source forge open source for the SCTP. Even the "make v4test" from the sctp source directory is also giving the same error.


Regards,
bkapashi
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Socket type not supported monindra Fedora - Installation 11 11-25-2008 05:06 PM
socket: Socket type not supported monindra Fedora - Installation 4 01-14-2008 08:25 AM
Raw socket creation error (IPPROTO_IP not supported) linfreak Programming 1 06-17-2004 01:37 PM
Raw socket creation error (IPPROTO_IP not supported) linfreak Linux - Networking 1 06-17-2004 11:53 AM
error:mount:fs type supermount not supported by kernel. shams Mandriva 11 05-14-2004 10:22 PM


All times are GMT -5. The time now is 10:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration