polypath: Reorganise to break up ifaddr handling
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 30 Sep 2014 16:36:44 +0000 (17:36 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 21 Oct 2014 00:07:11 +0000 (01:07 +0100)
commit70ad8e2cac2bafe2fca72fe5146ac0fb3719ffc9
tree81cbc3d59c3bec15e47e0eacee5618bba9594ca5
parentc72aa74324481a2ee642b1739baec10eb616cbca
polypath: Reorganise to break up ifaddr handling

We are going to want to do some of this processing in a different
process, and hence in a different order.  So split
polypath_process_monitor_lineinto three, producing two new functions
polypath_make_socket and polypath_record_ifaddr.

We change the error handling so it can be more context-sensitive: the
BAD macros use contextual `bad' and `badctx' values.  These are
function pointers.

dump_ppml becomes dump_pria because it records interface address
recording.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
polypath.c