From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28017 invoked by alias); 2 Feb 2007 17:18:26 -0000 Received: (qmail 28006 invoked by uid 22791); 2 Feb 2007 17:18:25 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s33.bay0.hotmail.com (HELO bay0-omc3-s33.bay0.hotmail.com) (65.54.246.233) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 02 Feb 2007 17:18:16 +0000 Received: from hotmail.com ([65.54.229.37]) by bay0-omc3-s33.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Fri, 2 Feb 2007 09:18:15 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 2 Feb 2007 09:18:15 -0800 Message-ID: Received: from 65.54.229.220 by by110fd.bay110.hotmail.msn.com with HTTP; Fri, 02 Feb 2007 17:18:12 GMT X-Sender: iucgnaw@msn.com In-Reply-To: <74C9525D67A5FF4791614FDB06593BB10429A1E1@mail.systech.com> From: "wang cui" To: jay@systech.com, andrew@lunn.ch Cc: ecos-discuss@ecos.sourceware.org Bcc: Date: Fri, 02 Feb 2007 17:18:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: RE: [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device? X-SW-Source: 2007-02/txt/msg00025.txt.bz2 Thanks. I'm reading i82559 code for reference, it is exactly like what you said. I will modify my driver and test it next monday. I think no further config key need to be added. :-) >From: Jay Foster >To: 'Andrew Lunn' , wang cui >CC: ecos-discuss@ecos.sourceware.org >Subject: RE: [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device? >Date: Fri, 2 Feb 2007 09:04:46 -0800 > >This may also be done generically from the ethernet driver's xxx_eth_start() >function. There is a 'flags' argument passed to the start function, but >unfortunately, eCos makes no use of it. However, if CYGPKG_NET is included, >the interface flags can be accessed using (sc->sc_arpcom.ac_if.if_flags). >These flags contain the flags IFF_PROMISC, IFF_MULTICAST, IFF_ALLMULTI, >IFF_BROADCAST, etc. > >Jay > >-----Original Message----- >From: Andrew Lunn [mailto:andrew@lunn.ch] >Sent: Thursday, February 01, 2007 11:53 PM >To: wang cui >Cc: ecos-discuss@ecos.sourceware.org >Subject: Re: [ECOS] Add config keys to Set/Clear promiscuous mode to >ethernet device? > > >On Fri, Feb 02, 2007 at 07:35:03AM +0000, wang cui wrote: > > I wander is there a standard way to change promiscuous mode of a ethernet > > device? > >Take a look at the i82559 driver. > > Andrew > >-- >Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos >and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss _________________________________________________________________ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss