On Jan 9, 2013, at 1:29 PM, Derek Cole <derek.c...@gmail.com> wrote:

> Well, after tracking down some of the structures being used in the ioctl 
> arguments, and memset() them to zero, I think all of the errors went away 
> without the need to write any additional wrappers other than the pselect() 
> wrapper. Most of those calls were int he bpf-pcap.c file.

That's where the ioctls are done; the other pcap-*.c files would be used on 
other OSes, so you wouldn't see anything there on FreeBSD.

> I am not sure whether that is a worthwhile check-in to make for pcap or not. 

I'd rather fix valgrind.  I'll see if I can beat it into working on Mountain 
Lion, and contribute wrappers for Darwin; as noted, those wrappers should also 
either Just Work, or work with some changes, on various *BSDs.  (That could 
also allow valgrind to do *more* checks on some of the BPF ioctls.)

(And then I can see whether, on one of my Linux VMs, fix it to get rid of some 
warnings on Linux as well.)
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Reply via email to