Erik Mouw wrote:
On Tue, Jan 25, 2005 at 03:33:13PM +0100, Paolo Perego wrote:
On Tue, 2005-01-25 at 10:12 +0530, Muruganandam wrote:
How to enable the Promiscus mode in the kernel,inorder to capture the packets.Advance Thanks
Kernel 2.4:
/usr/src/linux-2.4/net/core/dev.c void dev_set_promiscuity(struct net_device *dev, int inc); will set the interface which net_device corresponds to to "promiscous" mode
dev->promiscuity = 1 ; is all u need todo .
as somebody already pointed out , doing it thru a device file interface from userspace is a better way of doing it .
hth, cheers, Amith
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/