I have two probably unrelated problems:

 

1. I’m experimenting with winpcap to send packets and have created a test program based on the tutorial documentation.  The program runs however I see TWO packets created for each ONE that I send.

 

I’m sending (raw) Ethernet packets from my computer to another (my MAC in source, the other computer’s MAC in destination).

 

I’m watching the Ethernet line on my computer using Ethereal.  Each time I send one message, the message shows up twice in the Ethereal capture buffer.  This is on WinXP using VS.net

 

Any ideas?

 

2. If I try and single step through my code, I get an exception anytime I try and step over one of the winpcap routines.  I’ve noticed this specifically on the routines pcap_open() and pcap_sendpacket().  The message I get is:

 

Unhandled exception at 0x6a55ac84 in test1.exe: 0xC0000005: Access violation reading location 0x6a55ac84.

 

However, if I’m careful where I set breakpoints (e.g. not close to those functions), I can sort-of break/go.

 

Hints?

 

Ron

 

Reply via email to