[Winpcap-users] pcap_open / rpcap://any

Fulvio Risso fulvio.risso at polito.it
Fri Apr 21 22:17:20 GMT 2006


Chris Barlas wrote:
> I have been using winpcap for quite some time on a project with 
> standardized hardware, but now we are moving to boxes that have multiple 
> nics and no longer will they be standard (affecting the names and 
> such).  I was reading the docs and found that pcap_open can take a 
> string for device name of rpcap://any, though I have been unable to get 
> this to work.   I have tried “any”, “rpcap://any”  and saw the use of 
> PCAP_SRC_IF_STRING (defined in remote-ext.h) with no luck. I receive the 
> error “The interface name has not been specified in the source string.”  
> How can one accomplish this?  Does “any” really work as the docs 
> suggest?  I do not want to have the user choose or have to configure in 
> any way the app.  Thanks in advance. 

The "any" keyword, as interface specificator, works only on Linux (as far as I 
remember).
It does not work on Windows.

However, you can use the pcap_findalldevs_ex() to list all the adapters 
available in the remote node.

Cheers,

	fulvio

> 
>  
> 
> Regards,
> 
> Chris
> 
>  
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users



More information about the Winpcap-users mailing list