]> 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:58 +0000 (10:01 +0000)
committerguy <guy>
Wed, 19 Nov 2008 10:01:58 +0000 (10:01 +0000)
commit9bd32c78d339b3256b11c482bd8738fde416985d
treecf382718048a7529ea30bf7dd9f250989d7f1a3b
parent8a1d98fbe7344a8e52d134cbe52805ff72a9a581
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