chiark / gitweb /
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>
Wed, 8 Oct 2014 17:25:20 +0000 (18:25 +0100)
commita18fd3750a7b461a92e3f90cb6c20ba9e757dbda
tree8b981be277a74e1619cd7a231088a38dbdc9750d
parent4d7d81ab6a1e20a232a9a3d801086ceb3703bdf8
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