Re: [PATCH] wrong ENETDOWN in af_packet?

From: David S. Miller (davem@redhat.com)
Date: Thu Mar 06 2003 - 13:31:42 EST


   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 :-)
-
To unsubscribe from this list: 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



This archive was generated by hypermail 2b29 : Fri Mar 07 2003 - 22:00:01 EST