All of lore.kernel.org
 help / color / mirror / Atom feed
* kenel level packet capturing
@ 2011-10-18 15:19 raviraj joshi
  2011-10-18 20:41 ` Bruno Prémont
  2011-10-19  6:54 ` raviraj joshi
  0 siblings, 2 replies; 21+ messages in thread
From: raviraj joshi @ 2011-10-18 15:19 UTC (permalink / raw)
  To: linux-kernel

We are making a kernel level packet capture module as a part of our BE project .
We are finding it difficult to understand kenel networking code.
We studied structures and functions like sk_buff, netif_rx(),dev_alloc_skb.
How ever we were not able to trace the actual path a simple packet follows.
Moreover we tried to count the no of times netif_rx function was
called it was much much lower than amount of packets actually being
received.
Can anyone please let us know the reason for this and how to approach
the problem of writing a kernel level packet capture module.

regards,
Raviraj Joshi
PICT,Pune.

^ permalink raw reply	[flat|nested] 21+ messages in thread
* RE: kenel level packet capturing
@ 2011-12-14 14:55 chetan loke
  2011-12-14 15:04 ` Jasper Spaans
  2011-12-14 15:07 ` Eric Dumazet
  0 siblings, 2 replies; 21+ messages in thread
From: chetan loke @ 2011-12-14 14:55 UTC (permalink / raw)
  To: spaans, David Miller; +Cc: raviraj.j1991, netdev

> Some documentation for fanout is one feature that would be nice. (How
> to
> use it from userspace - after 5 minutes of googling, the first place
> where I could find an example is in the suricata source code[1]).

How about netdev's email archives ;) ? You would have noticed Dave's
sample fanout code. you can take that email and easily churn it into
20-50 lines of doc.

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

end of thread, other threads:[~2011-12-15 15:19 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 15:19 kenel level packet capturing raviraj joshi
2011-10-18 20:41 ` Bruno Prémont
2011-10-19  6:54 ` raviraj joshi
2011-10-19  7:12   ` Eric Dumazet
2011-10-19  7:13   ` David Miller
2011-10-19  8:52     ` Ajith Adapa
2011-10-19  8:52       ` Ajith Adapa
2011-10-19 12:30       ` Richard Cochran
2011-10-19 12:37   ` Benjamin Poirier
2011-12-13 12:04     ` raviraj joshi
2011-12-13 18:36       ` David Miller
2011-12-14  9:34         ` Jasper Spaans
2011-12-14  9:56           ` Eric Dumazet
2011-12-14 10:46         ` raviraj joshi
2011-12-14 13:31           ` Jan Engelhardt
2011-12-14 13:31             ` Jan Engelhardt
2011-12-14 16:09           ` David Miller
2011-12-15 15:19             ` Eduardo Panisset
  -- strict thread matches above, loose matches on Subject: below --
2011-12-14 14:55 chetan loke
2011-12-14 15:04 ` Jasper Spaans
2011-12-14 15:07 ` Eric Dumazet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.