[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <201102031045.43283.remi@remlab.net>
Date: Thu, 3 Feb 2011 10:45:42 +0200
From: "Rémi Denis-Courmont" <remi@...lab.net>
To: netdev@...r.kernel.org
Subject: Re: non-symmetric Unix dgram sockets and poll
Le mercredi 2 février 2011 19:36:40 Alban Crequy, vous avez écrit :
> Hi,
>
> I have 3 Unix dgram sockets (sockA, sockB, sockC):
> - sockA is connected to sockB.
> - sockB is connected to sockC.
> - sockC is not connected.
>
> SockA cannot send any message to sockB because
> net/unix/af_unix.c::unix_may_send() prevents it. Is there any reason for
> that restriction?
Yes, absolutely. When you connect() a socket, you expect to only *receive*
packets from the specified peer.
--
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists