kern/121242: Promiscuous mode of if_ate (arm) doesn't work
Björn König
bkoenig at alpha-tierchen.de
Fri Feb 29 23:30:02 UTC 2008
>Number: 121242
>Category: kern
>Synopsis: Promiscuous mode of if_ate (arm) doesn't work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 29 23:30:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Björn König
>Release:
>Organization:
>Environment:
>Description:
The ate network interface driver doesn't respect
the promiscuous mode setting yet.
>How-To-Repeat:
>Fix:
--- src-sys-arm-at91-if_ate.c.diff begins here ---
--- src/sys/arm/at91/if_ate.c.orig 2008-03-01 00:20:35.000000000 +0100
+++ arc/sys/arm/at91/if_ate.c 2008-03-01 00:23:29.000000000 +0100
@@ -740,6 +740,14 @@
WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) & ~ETH_CFG_RMII);
/*
+ * Enable or disable the promiscuous mode.
+ */
+ if (ifp->if_flags & IFF_PROMISC)
+ WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) | ETH_CFG_CAF);
+ else
+ WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) & ~ETH_CFG_CAF);
+
+ /*
* Turn on the multicast hash, and write 0's to it.
*/
WR4(sc, ETH_CFG, RD4(sc, ETH_CFG) | ETH_CFG_MTI);
--- src-sys-arm-at91-if_ate.c.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list