apparently these two functions don't get along well within the same
program. It looks as though you cannot try to get a handle to the same
adapter twice... the problem is, pcap_open_live returns a structure of
type pcap_t, which has a member variable/class/whatever called adapter.

in the body of the function pcap_open_live, it references p->adapter, I
need some way of passing that to another function so I can call
PacketSendPacket... since pcap_sendpacket seems to do a wonderful job of
crashing my win2k box.... does anyone have any idea how I can get around
these problems? Basically I need to be able to sniff and inject packets
from the same program (think Dsniff or Hunt). so basically what I'm
asking here is this:

does anyone know of a way to get the LPADAPTER part of the pcap_t
structure that pcap_open_live returns? or of a way to sniff using
straight PacketXXX calls?

Thanks to anyone who can help,

Ben Brownlee

Reply via email to