--- Enrico Demarin <enricod@videotron.ca> wrote: > Hi all, > > I was trying to understand how dev_add_pack() works : I > created a sample > driver, and added a packet handler like this : ... > Now, from what I understand this function is called from > /usr/src/linux/net/core/dev.c , > dev_queue_xmit_nit() : The function you registered thorugh dev_add_pack is called from netif_receive_skb. That's why you see all incoming packets also. If you need outgoing packets only, just discard the rest. Ravi. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/