Hi Gisle, Even if the PC receives unicast frames from the device and sends it back on the interface, the PC is still going to receive the echoed frames back.
Ideally I would like to put the interface in promiscuous mode and transmit back all packets captured on that interface without manipulating the packet. - Satish On Tue, 24 Aug 2004 01:39:57 +0200, Gisle Vanem <[EMAIL PROTECTED]> wrote: > "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] > ================================================================== > ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/[EMAIL PROTECTED]/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================
