Re: packet traversal

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



On 12/6/2013 11:28 AM, m.roth@xxxxxxxxx wrote:
>> I don't know whether i am asking on a correct list or not i have a query
>> >that how to know that what system call are called when packet enters the
>> >system or when we send a packet from a system?
> Hi, there. Sounds like you want to do a tcpdump, or some such, on eth0 (or
> whatever).

um, no, that wouldn't answer his question.

when a packet is recieved by a NIC, it generates a hardware interrupt, 
which triggers a kernel driver interrupt handler, this will use various 
kernel level APIs which aren't visible to user space, and bubbles 
through the various layers of the network stack, before its finally 
presented to the user mode application which is waiting for it via a 
read or select call.

the specifics of the kernel mode stuff is outside the scope of this 
list.   actually, this whole question is outside the scope of this list 
as its really not centos specific at all, its a general Linux kernel 
question.    I don't know what the appropriate forum for such might be, 
however.



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux