https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2653
--- Comment #2 from Guy Harris <guy@xxxxxxxxxxxx> 2008-07-01 01:06:51 PDT ---
The Linux kernel - or, at least, the version of the 2.6.22-15-generic kernel on
my Ubuntu 7.10 virtual machine - doesn't allow you to bind a PF_PACKET socket
to an interface that's not up. (It does, however, let you bind to the
interface if it's up, even if it has no IP addresses, so the lack of an IPv4
address is irrelevant.)
Once you've bound to the interface, if you're *not* using the memory-mapped
"turbopacket" mechanism, if the interface goes down, one recvfrom() call will
fail with ENETDOWN; subsequent calls will block waiting for more packets. If
you're using the turbopacket mechanism, no ENETDOWN will happen.
I've checked into the libpcap 1.0 and main CVS branches to ignore ENETDOWN
errors from recvfrom().
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.