Re: [tcpdump-workers] How to set my device name with

2007-09-27 Thread Guy Harris
Varuna De Silva wrote: > Next I removed the following part from the above code, and the build > succeeded. > if (pcap_add_if(alldevsp, "any", 0, any_descr, errbuf) < 0) > return (-1); > > Is this process acceptable of me removing the above part? Yes. That code is specific to Linux, which

Re: [tcpdump-workers] How to set my device name with pcap_platform_finddevs()

2007-09-27 Thread Varuna De Silva
On 9/26/07, Guy Harris <[EMAIL PROTECTED]> wrote: > > > On Sep 25, 2007, at 4:33 AM, Varuna De Silva wrote: > > > 1. How should I work around so that pcap_findalldevs() will add my > > device in > > the list? > Then add a routine to your pcap-xxx.c that, similarly to > septel_platform_finddevs(), a

Re: [tcpdump-workers] How to set my device name with pcap_platform_finddevs()

2007-09-25 Thread Guy Harris
On Sep 25, 2007, at 4:33 AM, Varuna De Silva wrote: 1. How should I work around so that pcap_findalldevs() will add my device in the list? If you're doing this on Windows, you will have to: modify pcap_findalldevs() in fad-win32.c to, right before it does if (ret =

[tcpdump-workers] How to set my device name with pcap_platform_finddevs()

2007-09-25 Thread Varuna De Silva
Hello, I want to get the name of my device in capture->interfaces > As long as you've modified libpcap/WinPcap so that pcap_findalldevs() adds your device to the list of available > devices, it should be displayed in Capture -> Interfaces and in the drop-down list in Capture -> Options. I also