linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* ethernet driver - problem capturing own packet in promiscous mode
@ 2009-07-15  8:36 sudheer a
  2009-07-15 12:22 ` Cote, Sylvain
  0 siblings, 1 reply; 3+ messages in thread
From: sudheer a @ 2009-07-15  8:36 UTC (permalink / raw)
  To: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 729 bytes --]

Hi all

In ethernet driver  i need to enable promiscous mode and have to capture the
packet that is sent by the same ethernet.

The board is connected to a packet generator and could send/receive packets
 whenever i need .

In the board ethernet driver , I made sure that am sending only broadcast
packets and promisc mode is enabled but the packets are not captured. If i
am sending a packet to the board from packetgenerator it is receiving.

Could any one please suggest me any clues.

Having the promisc enabled:
Packet sent by packetgenerator is received by board.
Packet sent by board is received by packetgenerator, The same packet should
be captured by board as promiscuous is enabled. but not happening.

Thanks
Sudheer

[-- Attachment #2: Type: text/html, Size: 958 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: ethernet driver - problem capturing own packet in promiscous mode
  2009-07-15  8:36 ethernet driver - problem capturing own packet in promiscous mode sudheer a
@ 2009-07-15 12:22 ` Cote, Sylvain
  2009-07-16  4:07   ` sudheer a
  0 siblings, 1 reply; 3+ messages in thread
From: Cote, Sylvain @ 2009-07-15 12:22 UTC (permalink / raw)
  To: sudheer a; +Cc: linuxppc-dev@lists.ozlabs.org

[-- Attachment #1: Type: text/plain, Size: 1728 bytes --]

> Hi all

> In ethernet driver  i need to enable promiscous mode and have to capture the packet that is sent by the same ethernet.

> The board is connected to a packet generator and could send/receive packets  whenever i need .

> In the board ethernet driver , I made sure that am sending only broadcast packets and promisc mode is enabled but the packets are not captured. If i am sending a packet to the board from packetgenerator it is receiving.

> Could any one please suggest me any clues.

> Having the promisc enabled:
> Packet sent by packetgenerator is received by board.
> Packet sent by board is received by packetgenerator, The same packet should be captured by board as promiscuous is enabled. but not happening.


The Ethernet interface that sent the packet will never receive the packet it sent even if you are in promiscuous mode.  To be able to do that you should put your interface in loopback mode.
In promiscuous mode, you will be able to receive any packets sent by other interfaces (broadcast, multicast and also unicast that is not directed to you interface MAC address).  But not
from your interface.

Regards

Sylvain

This electronic message may contain proprietary and confidential information of Verint Systems Inc., its affiliates and/or subsidiaries.
The information is intended to be for the use of the individual(s) or
entity(ies) named above.  If you are not the intended recipient (or authorized to receive this e-mail for the intended recipient), you may not use, copy, disclose or distribute to anyone this message or any information contained in this message.  If you have received this electronic message in error, please notify us by replying to this e-mail.
\r

[-- Attachment #2: Type: text/html, Size: 6177 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ethernet driver - problem capturing own packet in promiscous mode
  2009-07-15 12:22 ` Cote, Sylvain
@ 2009-07-16  4:07   ` sudheer a
  0 siblings, 0 replies; 3+ messages in thread
From: sudheer a @ 2009-07-16  4:07 UTC (permalink / raw)
  To: Cote, Sylvain; +Cc: linuxppc-dev@lists.ozlabs.org

[-- Attachment #1: Type: text/plain, Size: 1594 bytes --]

On Wed, Jul 15, 2009 at 5:52 PM, Cote, Sylvain <Sylvain.Cote@verint.com>wrote:

>    > Hi all
>
>
>
> > In ethernet driver  i need to enable promiscous mode and have to capture
> the packet that is sent by the same ethernet.
>
>
>
> > The board is connected to a packet generator and could send/receive
> packets  whenever i need .
>
>
>
> > In the board ethernet driver , I made sure that am sending only
> broadcast packets and promisc mode is enabled but the packets are not
> captured. If i am sending a packet to the board from packetgenerator it is
> receiving.
>
>
>
> > Could any one please suggest me any clues.
>
>
>
> > Having the promisc enabled:
>
> > Packet sent by packetgenerator is received by board.
>
> > Packet sent by board is received by packetgenerator, The same packet
> should be captured by board as promiscuous is enabled. but not happening.
>
>
>
>
>
> The Ethernet interface that sent the packet will never receive the packet
> it sent even if you are in promiscuous mode.  To be able to do that you
> should put your interface in loopback mode.
>
> In promiscuous mode, you will be able to receive any packets sent by other
> interfaces (broadcast, multicast and also unicast that is not directed to
> you interface MAC address).  But not
>
> from your interface.
>
Thanks for your inputs Sylvain.
I tried with loopback, it is working.
But during the time the hardware is in lopback mode, it may miss some rx
packets coming from outside or packet generator unfortunately and i dont
want it to happen.
Please let me know your views and suggestions.

Thanks
Sudheer

[-- Attachment #2: Type: text/html, Size: 4319 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-16  4:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-15  8:36 ethernet driver - problem capturing own packet in promiscous mode sudheer a
2009-07-15 12:22 ` Cote, Sylvain
2009-07-16  4:07   ` sudheer a

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 NNTP newsgroup(s).