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>
Thu, 2 Oct 2014 15:40:18 +0000 (16:40 +0100)
commit2cb220d8660253e779803b149572b07ba7a7d932
tree7dd44486998a224b0065d24aae14e041745724ef
parent3e55608636ee89cfa6894539f179d33a46174fab
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