chiark / gitweb /
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>
Thu, 9 Oct 2014 18:29:59 +0000 (19:29 +0100)
commit2302547bc07fc950e8917573c3b1805e0b3ba5b6
tree81cbc3d59c3bec15e47e0eacee5618bba9594ca5
parent274fce818821d1aa7287dece474cfa5f5016c89f
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