kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Netfilter and Tcpdump
@ 2011-04-11  6:02 Sowmya Sridharan
  2011-04-14  2:54 ` Mulyadi Santosa
  0 siblings, 1 reply; 2+ messages in thread
From: Sowmya Sridharan @ 2011-04-11  6:02 UTC (permalink / raw)
  To: kernelnewbies

Hi,

I was analyzing some tcpdump data, and noticed that it also captured 
packets mangled by Netfilter hooks.
Theoretically I know that the pcap library takes off the packets from 
ethernet driver level and with the help of
the dynamic filters set by userspace, we are able to see those packets via 
tcpdump.

But aren't netfilter hooks attached at a higher level, namely the network 
stack? If so, then how is the pcap library able to
sniff those packets as well? Is it like the pcap library just holds a 
reference to the packets it takes from the driver, or
does it maintain a separate copy for displaying?

Any answers/clarifications would be much appreciated.

Thanks,
Sowmya
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110411/b754f68c/attachment.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-14  2:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-11  6:02 Netfilter and Tcpdump Sowmya Sridharan
2011-04-14  2:54 ` Mulyadi Santosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).