]> The Tcpdump Group git mirrors - libpcap/commit
Improve error messages from bpf_open(), and let it do the error handling.
authorGuy Harris <[email protected]>
Wed, 19 May 2010 01:50:30 +0000 (18:50 -0700)
committerGuy Harris <[email protected]>
Wed, 19 May 2010 01:50:30 +0000 (18:50 -0700)
commit06a81b2e7272494de2bc5eee48dbf1e06e2193ad
tree4ca1a30743914a5c5807cf1e52bf6e8c57f68130
parent0a77b1b15fd0c52d97c1e5475c965ced0c0121b9
Improve error messages from bpf_open(), and let it do the error handling.

bpf_open() already handles returning the right PCAP_ERROR_ value and
setting p->errbuf; let it do its thing.

Enhance its thing so that it tries to do a better job of figuring out
what the problem is (no BPF devices at all, all BPF devices busy, no
permission to open BPF device, something else).
pcap-bpf.c