Fix typo in meth driver
Subsystems (2)
An | in an if statement to check a bit? I think this needs to be a &. As a result of this typo meth will always operate in promiscuous mode.
Signed-off-by Christoph Lameter <[email protected]>
drivers/net/meth.c +1 -1
@@ -287,7 +287,7 @@/* Initial mode: 10 | Half-duplex | Accept normal packets */ priv->mac_ctrl =METH_ACCEPT_MCAST |METH_DEFAULT_IPG ; -if (dev->flags |IFF_PROMISC ) +if (dev->flags &IFF_PROMISC ) priv->mac_ctrl |=METH_PROMISC ; mace->eth.mac_ctrl = priv->mac_ctrl;
Jeff Garzik
AppliedQuoted 10 lines · Christoph Lameter
An | in an if statement to check a bit? I think this needs to be a &. As a result of this typo meth will always operate in promiscuous mode.
Signed-off-by Christoph Lameter <[email protected]>Index:
linux-2.6/drivers/net/meth.c
===================================================================
drivers/net/meth.c line 293
Quoted 8 lines
drivers/net/meth.c +1
-1@@ -287,7 +287,7 @@/* Initial mode: 10 | Half-duplex | Accept normal packets */ priv->mac_ctrl =METH_ACCEPT_MCAST |METH_DEFAULT_IPG ; -if (dev->flags |IFF_PROMISC ) +if (dev->flags &IFF_PROMISC ) priv->mac_ctrl |=METH_PROMISC ; mace->eth.mac_ctrl = priv->mac_ctrl;
applied