All of lore.kernel.org
 help / color / mirror / Atom feed
* pcnet32 - promiscuous mode bug
@ 2001-11-02 21:31 Eli Carter
  0 siblings, 0 replies; only message in thread
From: Eli Carter @ 2001-11-02 21:31 UTC (permalink / raw)
  To: tsbogend, linux-kernel, Richard B. Johnson

To those interested in pcnet32,

In pcnet32_set_multicast_list(), the driver sets the promiscuous bit in
the init_block mode field.  This is copied to CSR15 during
initialization.

However, that bit is only read/write accessible when the device is in
the suspend or stopped state, so setting the promiscuous bit will have
no effect on an already UP interface.

Thus, to get the interface to actually be in promiscuous mode, one must:
ifconfig -i eth0 promisc
ifdown eth0 ; ifup eth0
tcpdump will now see promiscuous packets
and to turn it off,,
ifconfig -i eth0 -promisc
ifdown eth0 ; ifup eth0

It also appears that tcpdump 3.6.2 isn't triggering that code at all...
What does the driver need to support for tcpdump?

Anyone have a fix for this?

Eli 
--------------------.     Real Users find the one combination of bizarre
Eli Carter           \ input values that shuts down the system for days.
eli.carter(a)inet.com `-------------------------------------------------

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

only message in thread, other threads:[~2001-11-02 21:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-02 21:31 pcnet32 - promiscuous mode bug Eli Carter

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.