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>
Sun, 5 Oct 2014 20:06:28 +0000 (21:06 +0100)
commit855fb0668edd2cf85253f81408f4558e0f4a0bd8
tree22f02b99f25a30acf8c018e915b8603c8a4cdcd3
parentf6eff504840a1e9cc80edd34f8d0e328b9e170c9
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