[Winpcap-bugs] (no subject)

jboehm at htwg-konstanz.de jboehm at htwg-konstanz.de
Fri May 9 07:21:58 GMT 2008


Ciao!

I’m not sure if the error just occurs on my Computer but I don’t think so. I
downloaded WinPcap and tested some programs out of the tutorial. Already one of
the first ones “Opening an adapter and capturing the packets“ did not work. I
received always the error message “Unable to open adapter. XY is not supported
by WinPcap”.

The error came due to the suffix in front of the adapter name rpcap://\Device

After removing the suffix it worked. I just shifted the pointer to the !right!
position.

/* Open the device */
if ( (adhandle= pcap_open(d->name+8,  // That’s what I changed        
                          65536,          
                          PCAP_OPENFLAG_PROMISCUOUS,
                          1000,             
                          NULL,           
                          errbuf            
                         ) ) == NULL)
{
   fprintf(stderr,"\nUnable to open the adapter. %s is not supported by
WinPcap\n", d->name);
   pcap_freealldevs(alldevs);
   return -1;
}





More information about the Winpcap-bugs mailing list