udp: Log transmission and reception errors, at least some of the time
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 27 Sep 2014 14:03:34 +0000 (15:03 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Oct 2014 00:07:09 +0000 (01:07 +0100)
commit2d7478f775f7e150f46f095e8e4db90f24b362b8
tree8b981be277a74e1619cd7a231088a38dbdc9750d
parent4ea3eeb803a561e97407755eee34426bc639d49f
udp: Log transmission and reception errors, at least some of the time

We keep a bitmask for each combination of
  - receive/send
  - address family
  - success/failure
and log a message the first time each one occurs.

We also provide a new utility function `af_name()' which is going to
be used by polypath's logging.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
comm-common.h
udp.c