From: "Rémi Denis-Courmont" <remi@remlab.net>
To: netdev@vger.kernel.org
Subject: Re: non-symmetric Unix dgram sockets and poll
Date: Thu, 3 Feb 2011 10:45:42 +0200 [thread overview]
Message-ID: <201102031045.43283.remi@remlab.net> (raw)
In-Reply-To: <20110202173640.2af412f0@chocolatine.cbg.collabora.co.uk>
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
prev parent reply other threads:[~2011-02-03 8:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-02 17:36 non-symmetric Unix dgram sockets and poll Alban Crequy
2011-02-03 8:45 ` Rémi Denis-Courmont [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201102031045.43283.remi@remlab.net \
--to=remi@remlab.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).