ethernet driver - problem capturing own packet in promiscous mode

sudheer a a.sudheer443 at gmail.com
Thu Jul 16 14:07:51 EST 2009


On Wed, Jul 15, 2009 at 5:52 PM, Cote, Sylvain <Sylvain.Cote at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20090716/acfefcfc/attachment.htm>


More information about the Linuxppc-dev mailing list