From owner-freebsd-bugs@FreeBSD.ORG Fri Feb 29 23:30:02 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD41B1065674 for ; Fri, 29 Feb 2008 23:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AA39F8FC23 for ; Fri, 29 Feb 2008 23:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1TNU2Go098722 for ; Fri, 29 Feb 2008 23:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1TNU2Ih098719; Fri, 29 Feb 2008 23:30:02 GMT (envelope-from gnats) Resent-Date: Fri, 29 Feb 2008 23:30:02 GMT Resent-Message-Id: <200802292330.m1TNU2Ih098719@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Björn König Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32BCD1065674 for ; Fri, 29 Feb 2008 23:29:10 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from mail.liberty-hosting.de (mail.smartterra.de [195.225.132.203]) by mx1.freebsd.org (Postfix) with ESMTP id EA3238FC19 for ; Fri, 29 Feb 2008 23:29:09 +0000 (UTC) (envelope-from bkoenig@alpha-tierchen.de) Received: from home.alpha-tierchen.de (port-212-202-40-215.dynamic.qsc.de [212.202.40.215]) by mail.liberty-hosting.de (Postfix) with ESMTP id E590B3E99D3; Sat, 1 Mar 2008 00:27:35 +0100 (CET) Received: from muhkuh.lan (muhkuh.lan [192.168.1.2]) by home.alpha-tierchen.de (Postfix) with SMTP id C177D288A8; Sat, 1 Mar 2008 00:29:07 +0100 (CET) Received: by muhkuh.lan (sSMTP sendmail emulation); Sat, 1 Mar 2008 00:29:09 +0100 Message-Id: <20080229232907.C177D288A8@home.alpha-tierchen.de> Date: Sat, 1 Mar 2008 00:29:09 +0100 From: "Björn König" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: cognet@FreeBSD.org Subject: kern/121242: Promiscuous mode of if_ate (arm) doesn't work X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Björn König List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Feb 2008 23:30:02 -0000 >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: