"Satish" <[EMAIL PROTECTED]> said:
> I'm writing a simple application where the PC capture packets from an
> ethernet interface and echoes the same packet back on the same
> interface. The application is meant to test the network interface
> of an embedded device and the device will be directly connected via
> crossover cable to the PC.
>
> I'm finding out that the frame the PC echoes out the interface is
> being input again on the receive side, causing problems with infinite
> loops of the same packet being captured and transmitted.
What is the destination MAC-address set to? It is normal for NDIS
to loop back broadcast (and multicast?) frames sent from the same
interface. Set the receive-mode to non-promiscous should work okay.
E.g.
PacketSetHwFilter (adapter, NDIS_PACKET_TYPE_DIRECTED |
NDIS_PACKET_TYPE_BROADCAST);
works fine for me.
--gv
==================================================================
This is the WinPcap users list. It is archived at
http://www.mail-archive.com/[EMAIL PROTECTED]/
To unsubscribe use
mailto: [EMAIL PROTECTED]
==================================================================