Ethereal-dev: Re: [ethereal-dev] AIX: gtk problem solved, now an ethereal problem

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Craig Rodrigues <rodrigc@xxxxxxxxxxxx>
Date: Mon, 15 Nov 1999 01:12:44 -0500
On Sun, Nov 14, 1999 at 09:05:55PM -0800, Guy Harris wrote:
> > Inside bpf_open(), in pcap-bpf.c, the following is called with device equal
> > to "/dev/bpf0", which exists in the /dev directory on my system.
> > 
> > fd = open(device, O_RDONLY); 
> > 
> > After this line, fd is set to 10, and errno is set to 0x4a, which is 
> > "No buffer space available"
> > 
> > This causes pcap_open_live() to fail.

I changed the line, and here is what I get back:

Failed to open lo0 with pcap_open_live(), pch is NULL
Failed to open lo0 with pcap_open_live(), pch is NULL
Failed to open lo0 with pcap_open_live(), pch is NULL
Failed to open en0 with pcap_open_live(), pch is NULL
Failed to open en0 with pcap_open_live(), pch is NULL

Just for kicks, just after running this program,
I tried running AIX's tcpdump:

# tcpdump
tcpdump: BIOCSETIF: en0: Do not specify an existing file. 

As a non-root user, I tried it and got:
~% tcpdump
tcpdump: error loading /usr/lib/drivers/bpf

Hmmmm....any ideas?
-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc@xxxxxxxxxxxx