* RE: [ECOS] Add config keys to Set/Clear promiscuous mode to ether net device?
@ 2007-02-02 17:11 Jay Foster
2007-02-02 17:18 ` [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device? wang cui
0 siblings, 1 reply; 5+ messages in thread
From: Jay Foster @ 2007-02-02 17:11 UTC (permalink / raw)
To: 'Andrew Lunn', wang cui; +Cc: ecos-discuss
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
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device?
2007-02-02 17:11 [ECOS] Add config keys to Set/Clear promiscuous mode to ether net device? Jay Foster
@ 2007-02-02 17:18 ` wang cui
0 siblings, 0 replies; 5+ messages in thread
From: wang cui @ 2007-02-02 17:18 UTC (permalink / raw)
To: jay, andrew; +Cc: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 1760 bytes --]
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 <jay@systech.com>
>To: 'Andrew Lunn' <andrew@lunn.ch>, wang cui <iucgnaw@msn.com>
>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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device?
2007-02-02 7:53 ` Andrew Lunn
@ 2007-02-02 16:25 ` wang cui
0 siblings, 0 replies; 5+ messages in thread
From: wang cui @ 2007-02-02 16:25 UTC (permalink / raw)
To: andrew; +Cc: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 391 bytes --]
Got it, thanks.
>
>Take a look at the i82559 driver.
>
> Andrew
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device?
2007-02-02 7:35 wang cui
@ 2007-02-02 7:53 ` Andrew Lunn
2007-02-02 16:25 ` wang cui
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Lunn @ 2007-02-02 7:53 UTC (permalink / raw)
To: wang cui; +Cc: ecos-discuss
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device?
@ 2007-02-02 7:35 wang cui
2007-02-02 7:53 ` Andrew Lunn
0 siblings, 1 reply; 5+ messages in thread
From: wang cui @ 2007-02-02 7:35 UTC (permalink / raw)
To: ecos-discuss
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 424 bytes --]
I wander is there a standard way to change promiscuous mode of a ethernet
device?
Thanks in advance.
_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-02-02 17:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02 17:11 [ECOS] Add config keys to Set/Clear promiscuous mode to ether net device? Jay Foster
2007-02-02 17:18 ` [ECOS] Add config keys to Set/Clear promiscuous mode to ethernet device? wang cui
-- strict thread matches above, loose matches on Subject: below --
2007-02-02 7:35 wang cui
2007-02-02 7:53 ` Andrew Lunn
2007-02-02 16:25 ` wang cui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).