chiark / gitweb /
comm_if: Define the meaning of ->sendmsg returning false
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 28 Jun 2014 13:26:56 +0000 (14:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Sep 2014 12:36:50 +0000 (13:36 +0100)
commit3183f7f609609bf234d9162cfbf0b319767c2e86
tree8079a44595e6d8cf126c5bb8ac0896c1cc167584
parentff8034f3369f5dee896cb1536a0c3bd1d94bd953
comm_if: Define the meaning of ->sendmsg returning false

site's transport logic is going to want to know when a failure occurs
which is attributable to the address being unsuitable for the local
network environment (eg v4 address on v6-only host).

Use the boolean return value from sendmsg for that.

At the moment all the callers ignore the return value, and the only
actual sendmsg function always returns true.  This is consistent with
the new semantics.

Therefore, no functional change in this patch.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
secnet.h