chiark / gitweb /
polypath: Plumb ifname_wanted `want' through privsep etc.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Apr 2017 13:07:57 +0000 (14:07 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Apr 2017 17:06:21 +0000 (18:06 +0100)
commit65d6d32e633f180dc77146ddcc4f6be58114fd19
tree1a772a4efb397ef02c71bdae67c443e383cf502b
parent7b7135490b166cefca495e6fcfc4bd4f9158a9de
polypath: Plumb ifname_wanted `want' through privsep etc.

Prepare for there being multiple interface lists, and for a new kind
of `want'.  Specifically:

* Arrange to declare the type `struct interf_list'.
* Pass the want via the privsep protocol, as a character.
* Pass the want in lots of command line arguments.
* Move assert for rogue values to the use site, which is now in
  a different process so it can't be an assert.
* Introduce a variable `interfs' in polypath_record_ifaddr to allow
  it to manipulate a different list.
* Introduce a variable `max_interfs' in polypath_record_ifaddr to
  allow a different check.
* Print the relevant want in debugging output.

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