Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > The Linux Kernel
Reload this Page SCTP client implementation in kernel space
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

The Linux Kernel Compiling, theory, programming or other discussion about the linux kernel

Reply
 
Thread Tools Display Modes
Old 10-24-2007   #1 (permalink)
Just Joined!
 
Join Date: Oct 2007
Posts: 1
SCTP client implementation in kernel space

I want to make a simple SCTP client server module in kernel space.
I used Fedora core 6 (kernel 2.6.18.1) and installed lksctp 1.0.6.
I run the SCTP client and server in user space normally by lksctp.
I already made the server side in kernel space and tested it with the client side in user space.
Then, the association was established successfully.(INIT, INIT_ACK, COOKIE_ECHO and COOKIE ACK)
So, I am working on the client side in kernel space.
When I try to test connect function, it has this error message "BUG: unable to handle kernel NULL pointer dereference at virtual address 00000018".
I traced code and found this error.
It occurred when call sock_sndtimeo() in __sctp_connect() of net/sctp/socket.c .
The sk->sk_socket->file is NULL in sock_sndtimeo().

The client code is given below.

--for running this i have to insmod --
struct socket *sock;
struct sockaddr_in seraddr;
int err;
err=sock_create_kern(AF_INET,SOCK_STREAM,IPPROTO_S CTP,&sock);

memset((void*)&seraddr, 0, sizeof(seraddr));
seraddr.sin_family=AF_INET;
seraddr.sin_port=htons (19000);
seraddr.sin_addr.s_addr=(unsigned int)0x0A01A8C0; //192.168.1.10;

err=sock->ops->connect(sock,(struct sockaddr*)&seraddr,sizeof(seraddr),0);
return 0;

------------
Jinkle Wei
Jinkle Wei is offline   Reply With Quote
Old 06-13-2008   #2 (permalink)
Just Joined!
 
Join Date: Jun 2008
Posts: 1
Need help in writing SCTP Sockets Kernel Space

Hi Jinkle Wei,

I am in to similar kind of work. i am suppose to write SCTP sockets in Kernel Space. I am new to programming in Kernel space and if you could point me to some resources it would be a great help.

Thanking you,

Regards, Raagu
enraagu is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 10.2 Hogging Memory amyno SuSE Linux Help 13 06-28-2007 12:35 AM
kernel faulters on suse 9 linuxian SuSE Linux Help 0 05-04-2006 07:41 PM
Wireless, PCMCIA, and kernel config problems ucraymond Linux Networking 2 08-03-2005 08:11 PM
Where to find the errors when machine hangs up? walking The Linux Kernel 12 07-16-2005 08:07 PM
3c90x in Caldera 2.4 bionik Installation 20 03-12-2003 09:38 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 06:55 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0