public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Question about sniffers and linux
@ 2001-12-07 18:44 salinarl
  2001-12-10  8:09 ` Abraham vd Merwe
  0 siblings, 1 reply; 3+ messages in thread
From: salinarl @ 2001-12-07 18:44 UTC (permalink / raw)
  To: linux-kernel

Hello to everyone,
I am new to kernel internals, and I would like to know how can a sniffer
read whole packets, I mean including the link layer header. In the receive
path, this happens, I think,  in the net_rx_action(), but in the transmit
path?
I know that there is a function called dev_queue_xmit_nit() for this, but
how can a driver add a link layer header to a packet before this function
gets called? The hard_start_xmit() of the driver is, in fact, called after
the dev_queue_xmit_nit(), (in the function dev_queue_xmit() ).
I think I'm missing something important about the subject, but I hope someone 
will answer me, anyway.
Thank you in advance,

Lanfranco


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

end of thread, other threads:[~2001-12-10 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-07 18:44 Question about sniffers and linux salinarl
2001-12-10  8:09 ` Abraham vd Merwe
2001-12-10 13:38   ` Lanfranco Salinari

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox