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>
Mon, 29 Sep 2014 15:20:02 +0000 (16:20 +0100)
commit0da96aae8ec0d688ef6559944bd60d06aea779ae
tree3927ee03d5a5b1cfc2d29afe97c1afa7b49fd757
parent3662bc5f8734c05b258e8b9a0ef3ff0148b25cc7
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