http://www.linuxjournal.com/node/7356/

here is the link showing how u can add ur socket and define new protocol for netlink family ( if u wish) in kernel land.

On Tue, Feb 22, 2011 at 3:13 PM, prabhu <prabhum@msys-tech.com> wrote:
Hi All,

I wrote socket program in user level but i want to write the same program in kernel. Like the driver(socket server) should receive all the incoming
TCP or UDP pocket(may be say raw socket) and write into the file.

Please provide your valuable idea to do this program ... Also please point out pitfalls.

Thanks,
Prabhu


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




--
........................
MOHIT VERMA