chiark / gitweb /
svc/conntrack.in: Contemplate multiple address families.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 29 Sep 2017 08:15:05 +0000 (09:15 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 28 Jun 2018 23:29:24 +0000 (00:29 +0100)
commite152ccf25e1047309d0649e82378c6ea86b1c270
treedbbf5763eb293203db59a1f8f23d3305cec6fc86
parenta59afe077ac5e4165422fa8519d5406041169779
svc/conntrack.in: Contemplate multiple address families.

A number of relatively simple changes, with no overall functional change
except for a few diagnostic messages.

  * Attach the address-family code and a name string to the
    `InetAddress' class.  This will mean that we can add new address
    families without breaking things.

  * Make `testaddrs' (and related variables) be a dictionary, mapping
    address families to addresses, rather than just a lone address.

  * Ensure that the networks in a peer assignment belong to the same
    family.  They will do for now, because there's only one.

  * Have `kickpeers' maintain a local IP address for each family, rather
    than just a single one.
svc/conntrack.in