LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-25-2011, 03:47 PM   #1
rcorcs
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Rep: Reputation: Disabled
Question Kernel modules responsible for sending and receiving packets


Hi,

I'm studying some parts of the kernel code, and I need to learn
the part of the kernel responsible for sending and receiving packets.

What I mean is, when someone calls the C functions send(), sendto(), recv() and recvfrom(), which kernel modules and files of the kernel source code are responsible for implementing such tasks?

Please, can anyone help me?

Thanks
 
Old 09-25-2011, 04:23 PM   #2
rcorcs
LQ Newbie
 
Registered: Sep 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
I know that in the Minix kernel (actually it's in the Minix application layer) the files responsibles for doing that are:

SEND:
src/lib/ip/sendto.c
src/lib/ip/send.c

RECV:
src/lib/ip/recvfrom.c
src/lib/ip/recv.c

Are they similar in the Linux kernel?
 
Old 09-25-2011, 06:08 PM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You might want to look at:

Code:
./net/ipv4/ip_output.c
./net/ipv4/ip_input.c
relative to the top-level of your kernel source directory.
 
  


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
[SOLVED] Sending/receiving UDP packets through a PF_PACKET socket mibo Programming 21 12-06-2011 03:14 AM
Sending Ethernet packets from inside the kernel DonnoWhatToDo Linux - Networking 1 06-21-2011 02:13 PM
[SOLVED] Sending packets at Kernel level anon069 *BSD 0 08-29-2010 12:19 AM
Problems receiving multicast packets, kernel 2.6.24 nathan2225 Linux - Networking 3 08-30-2008 03:39 PM
I'm receiving packets but not sending on a wireless network chetjordan2002 Linux - Wireless Networking 2 07-29-2006 12:52 PM

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

All times are GMT -5. The time now is 02:29 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