Re: [PATCH] wrong ENETDOWN in af_packet?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



   From: Eric Lammerts <eric@lammerts.org>
   Date: Wed, 5 Mar 2003 15:11:23 +0100
   
   The reason is that (in af_packet.c) packet_notifier(NETDEV_DOWN) sets
   sk->err to ENETDOWN, but packet_notifier(NETDEV_UP) doesn't clear it.
   Is this behaviour deliberate?

Yes the behavior is deliberate.  You want to be aware of the
event.  Just because the opposite event has occurred afterwards
doesn't mean the first event didn't happen :-)
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux