linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: sudheer a <a.sudheer443@gmail.com>
To: "Cote, Sylvain" <Sylvain.Cote@verint.com>
Cc: "linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>
Subject: Re: ethernet driver - problem capturing own packet in promiscous mode
Date: Thu, 16 Jul 2009 09:37:51 +0530	[thread overview]
Message-ID: <4312c3250907152107o1362fd0aicd95c521f5b42608@mail.gmail.com> (raw)
In-Reply-To: <579B119545DAEF4689C8FBEEFEC5793F01D4FF0A202C@ATLMBX.verint.corp.verintsystems.com>

[-- 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 --]

      reply	other threads:[~2009-07-16  4:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4312c3250907152107o1362fd0aicd95c521f5b42608@mail.gmail.com \
    --to=a.sudheer443@gmail.com \
    --cc=Sylvain.Cote@verint.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).