]> The Tcpdump Group git mirrors - libpcap/commit
If attempting to turn memory-mapped access on fails for any reason other
authorguy <guy>
Wed, 19 Nov 2008 10:01:30 +0000 (10:01 +0000)
committerguy <guy>
Wed, 19 Nov 2008 10:01:30 +0000 (10:01 +0000)
commit5cf5f7c1c879c1e918029f968eddf964aa5f8c49
tree78e13ea0eada90f0aa16c3b50e5fff33eeb65314
parent8fa17a5a554aaeb85d3ec4118b45a31f1efd6808
If attempting to turn memory-mapped access on fails for any reason other
than "the kernel doesn't support memory-mapped access to PF_PACKET
sockets", treat that as an error.  If it fails for that reason, don't
leave gunk behind in the pcap_t's error buffer.

Clean up the error messages a bit (the result of strerror() suffices; we
don't need the numeric value of errno, nor do we need the file
descriptor number of the socket on which we're working).
pcap-linux.c