Help.. in tcp kernel sockets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am new to kernel programming. 

I need to write a kernel socket (TCP)module which listens to incoming requests (and also reply back).  I downloaded the code from:

http://kernelnewbies.org/Simple_UDP_Server

and made changes
1) SOCK_DGRAM -> SOCK_STREAM and
2) IPPROTO_UDB -> IPPROTO_TCP

I run make on this file and obtain the .ko file.  When i insmod the .ko file and observe the output of dmesg, i get a error message:

Error getting stream , sock_recvmsg error = -107

Can someone please let me know what could be the error?? Should i add more code or what changes do i need to make?

Request anyone to please suggest the remedy.

Thanks in advance,

Ravi.


Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux