Skip site navigation (1)Skip section navigation (2)
Date:      Sat,  1 Mar 2008 00:29:09 +0100
From:      "Björn König" <bkoenig@alpha-tierchen.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        cognet@FreeBSD.org
Subject:   kern/121242: Promiscuous mode of if_ate (arm) doesn't work
Message-ID:  <20080229232907.C177D288A8@home.alpha-tierchen.de>
Resent-Message-ID: <200802292330.m1TNU2Ih098719@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080229232907.C177D288A8>