Re: [tcpdump-workers] pcap_findalldevs

2014-02-05 Thread Guy Harris
On Feb 5, 2014, at 2:10 AM, Hei Chan wrote: > I am new to libpcap, and I am trying to use the following to get the list of > network devices available to libpcap by calling pcap_findalldevs(). > > Manpage mentions, "there may be network devices that cannot be opened by > the process calli

[tcpdump-workers] pcap_findalldevs

2014-02-05 Thread Hei Chan
Hi, I am new to libpcap, and I am trying to use the following to get the list of network devices available to libpcap by calling pcap_findalldevs(). Manpage mentions, "there may be network devices that cannot be  opened  by  the  process  calling pcap_findalldevs(3), because, for example, that p

[tcpdump-workers] pcap_findalldevs() return codes

2013-09-19 Thread Sreeram BS
Hi,      I have subscribed to the list yesterday and today I am posting one of the queries/concerns I encountered with pcap today. This is related to the pcap_findalldevs() library call. This call will take a pointer-to-a-pointer-to-pcap_if_t, and an err-buffer.  It returns 0 on success and -1 on

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-03 Thread Guy Harris
On Apr 3, 2011, at 4:24 PM, Bob wrote: > Yes, I'm checking the whole linked list. I get an AF_LINK and AF_INET6 per > interface but no AF_NET. Works great on Ubuntu. Probably something simple > I'll keep debugging. The program I was running was the findalldevstest program, the source to which

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-03 Thread Bob
Yes, I'm checking the whole linked list. I get an AF_LINK and AF_INET6 per interface but no AF_NET. Works great on Ubuntu. Probably something simple I'll keep debugging. -Rob On Apr 3, 2011, at 10:14 AM, Guy Harris wrote: > > On Apr 2, 2011, at 7:40 PM, Bob wrote: > >> Hello, I just noticed

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-03 Thread Guy Harris
On Apr 2, 2011, at 7:40 PM, Bob wrote: > Hello, I just noticed that no AF_INET address is returned when getting an > interface list (from pcap_findalldevs) on OSX even when an IPv4 address is > assigned to that interface. An AF_INET6 address is however returned. Is this > the expect behavior?

Re: [tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have

2011-04-03 Thread Sam Roberts
On Sat, Apr 2, 2011 at 7:40 PM, Bob wrote: > Also, any suggestions for a cross-platform means of getting a MAC address > (AF_LINK). On BSD i can use socketaddr_dl from if_dl.h, but Linux doesn't > have this. I'm not even sure about windows. libnet has a libnet_get_hwaddr(), might work across yo

[tcpdump-workers] pcap_findalldevs, pcap_addr doesn't have AF_INET entries on OSX

2011-04-02 Thread Bob
Hello, I just noticed that no AF_INET address is returned when getting an interface list (from pcap_findalldevs) on OSX even when an IPv4 address is assigned to that interface. An AF_INET6 address is however returned. Is this the expect behavior? Am I do something wrong? Also, any suggestions

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-28 Thread Guy Harris
On Sep 24, 2009, at 10:18 PM, Aaron Turner wrote: Actually, none of his interfaces are being returned (nfe0, nfe1 and lo0). I looked in the change log and don't see any mention of any improvements/fixes in pcap_finalldevs() since 0.9.7 so I figured I'd mention it. On FreeBSD releases with ge

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-28 Thread Aaron Turner
On Wed, Oct 28, 2009 at 9:27 AM, Wesley Shields wrote: > On Wed, Oct 28, 2009 at 10:57:33AM -0400, Wesley Shields wrote: >> On Tue, Oct 27, 2009 at 12:00:04PM -0700, Aaron Turner wrote: >> > On Tue, Oct 27, 2009 at 11:55 AM, Jung-uk Kim wrote: >> > > On Friday 25 September 2009 01:18 am, Aaron Tu

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-28 Thread Wesley Shields
On Wed, Oct 28, 2009 at 10:57:33AM -0400, Wesley Shields wrote: > On Tue, Oct 27, 2009 at 12:00:04PM -0700, Aaron Turner wrote: > > On Tue, Oct 27, 2009 at 11:55 AM, Jung-uk Kim wrote: > > > On Friday 25 September 2009 01:18 am, Aaron Turner wrote: > > >> I've got a user of tcpreplay having issues

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-28 Thread Wesley Shields
On Tue, Oct 27, 2009 at 12:00:04PM -0700, Aaron Turner wrote: > On Tue, Oct 27, 2009 at 11:55 AM, Jung-uk Kim wrote: > > On Friday 25 September 2009 01:18 am, Aaron Turner wrote: > >> I've got a user of tcpreplay having issues where his interfaces are > >> not being returned via pcap_findalldevs()

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-27 Thread Gianluca Varenni
- Original Message - From: "Abdelrazak Younes" To: "Aaron Turner" Cc: Sent: Tuesday, October 27, 2009 6:04 AM Subject: Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2 Hello Aaron, Aaron Turner wrote: I've got a user of tcprepla

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-27 Thread Aaron Turner
On Tue, Oct 27, 2009 at 11:55 AM, Jung-uk Kim wrote: > On Friday 25 September 2009 01:18 am, Aaron Turner wrote: >> I've got a user of tcpreplay having issues where his interfaces are >> not being returned via pcap_findalldevs() under FreeBSD 7.2 using >> libpcap 0.9.7.  I don't have much more inf

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-27 Thread Jung-uk Kim
On Friday 25 September 2009 01:18 am, Aaron Turner wrote: > I've got a user of tcpreplay having issues where his interfaces are > not being returned via pcap_findalldevs() under FreeBSD 7.2 using > libpcap 0.9.7. I don't have much more information unfortunately, > but I do know he has an "nVIDIA n

Re: [tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-10-27 Thread Abdelrazak Younes
Hello Aaron, Aaron Turner wrote: I've got a user of tcpreplay having issues where his interfaces are not being returned via pcap_findalldevs() under FreeBSD 7.2 using libpcap 0.9.7. I don't have much more information unfortunately, but I do know he has an "nVIDIA nForce 10/100/1000 Ethernet" NI

[tcpdump-workers] pcap_findalldevs() failing on FreeBSD 7.2

2009-09-24 Thread Aaron Turner
I've got a user of tcpreplay having issues where his interfaces are not being returned via pcap_findalldevs() under FreeBSD 7.2 using libpcap 0.9.7. I don't have much more information unfortunately, but I do know he has an "nVIDIA nForce 10/100/1000 Ethernet" NIC as well as the obvious loopback.

Re: [tcpdump-workers] pcap_findalldevs doesn't return bluetooth interfaces

2007-11-15 Thread Guy Harris
Barry Reinhold wrote: I just want to confirm that installing the bluez-libs-devel-3.7-1.i386 rpm (built on Fedora 6) worked on CentOS 5 and resolved the problem. I should have caught the clue in config.log - that was an explicit message that had the needed information, however, I appreciate the

Re: [tcpdump-workers] pcap_findalldevs doesn't return bluetooth interfaces known to hcitool

2007-11-15 Thread Barry Reinhold
. Barry -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Guy Harris Sent: Wednesday, November 14, 2007 9:02 PM To: tcpdump-workers@lists.tcpdump.org Subject: Re: [tcpdump-workers] pcap_findalldevs doesn't return bluetooth interfaces known to hcitool On N

Re: [tcpdump-workers] pcap_findalldevs doesn't return bluetoothinterfaces known to hcitool

2007-11-15 Thread Paolo Abeni
hello, On Wed, 2007-11-14 at 18:02 -0800, Guy Harris wrote: > Do you have a developer package for the Bluez Bluetooth stack's > library? (No, I don't know what package that would be.) The package name for Fedora core is bluez-libs-devel. I suppose the name should be the same for centOS... ch

Re: [tcpdump-workers] pcap_findalldevs doesn't return bluetooth interfaces known to hcitool

2007-11-14 Thread Guy Harris
On Nov 14, 2007, at 10:57 AM, Barry Reinhold wrote: I am attempting to use libpcap to capture Bluetooth exchanges (DLT_BLUETOOTH) Presumably you mean DLT_BLUETOOTH_HCI_H4 or DLT_BLUETOOTH_HCI_H4_WITH_PHDR; there is no DLT_BLUETOOTH with that name. and am working with the head of the cv

[tcpdump-workers] pcap_findalldevs doesn't return bluetooth interfaces known to hcitool

2007-11-14 Thread Barry Reinhold
I am attempting to use libpcap to capture Bluetooth exchanges (DLT_BLUETOOTH) and am working with the head of the cvs repository. The environment is a CentOS 5 system with kernel 2.6.18. It has a USB Bluetooth adaptor that shows up as hci0 when the "hcitool dev" command is given. However, this in

[tcpdump-workers] pcap_findalldevs hangs when run in child thread

2004-05-20 Thread Yaotian Wang
Hello I hope this is the right place for my question. My setup: - Redhat 9, pentium 4 box, latest patch applied today, pthread version 0.10 - tried using both latest version of libpcap from (0.8.3) tcmpdump.org site, and version 0.6.2 that came with redhat 9 Problem: When i spawn a new thread f