mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* dev_add_pack() question
@ 2001-05-09 14:29 Rafal Wojtczuk
  0 siblings, 0 replies; only message in thread
From: Rafal Wojtczuk @ 2001-05-09 14:29 UTC (permalink / raw)
  To: linux-kernel

Hello,
I register a callback function with dev_add_pack() this way:
  memset (&proto, 0, sizeof proto);
  proto.type = htons (ETH_P_ALL);
  proto.func = my_callback_function;
  dev_add_pack (&proto);
my_callback_function() receives all packets with local src/dst IP (including
SNATed ones) as well as all incoming ones, but forwarded outgoing packets are 
not passed to my_callback_function(). Looks like AF_PACKET sockets also rely 
on dev_add_pack(), yet of course tcpdump (correctly) shows all the packets. 
How should I register a callback with dev_add_pack() so that the callback
receives all the packets ?

Save yourself,
Nergal


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-09 12:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-05-09 14:29 dev_add_pack() question Rafal Wojtczuk

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

all inboxes | Powered by JetHome®