has anyone had a problem with pcap_sendpacket() causing Win2K to
crash???
I'm trying to write a little program that will allow me to send out ARP
WHO-HAS requests, and this function seemed to be the easiest method.
Whenever the function is called, however, I get a black screen and then
see the BIOS output and POST.... here's how I'm initializing
everything, just in case:
u_char *buf = "an arp packet... ";
pcap_t *sniffThis;
dev = (char *)pcap_lookupdev( err );
if( (sniffThis = pcap_open_live( dev, snaplen, 1, to_ms, err )) ==
NULL ){
cout << "pcap_open_live died with: " << err << "\n";
}
cout << "pcap_open_live successful!\n";
pcap_sendpacket(sniffThis, buf, sizeof(buf));