Overhaul address classification.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 5 Mar 2012 23:16:25 +0000 (23:16 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 5 Mar 2012 23:56:03 +0000 (23:56 +0000)
commitbeb4f0eeafb386d83f2593fec489f4291583e08b
tree6c8034566f8d0fe1b95fd780ed92c1f989199c2c
parent335b2afe384c35ca09f167a5f52172937b8069d4
Overhaul address classification.

The current system isn't scaling.  Adding new networks in particular is
very difficult, and requires subtle changes to all of the host
definitions -- which is also rather tedious.

This new version overhauls the way that the classification chains are
constructed.  The important part is that they're now derived from a
single description of the entire network.  (This isn't necessary: the
network and hosts could be scattered arbitrarily, but it makes
management easier for me.)

The critical bit is the algorithm in `net_interfaces' which computes
which networks' source addresses can arrive at a particular interface.
This algorithm isn't especially clever (what with being written in
Bourne shell and all) but seems to do the job fairly well, and it has
enough knobs to tweak that getting the right answer isn't too hard.
artist.m4
classify.m4
fender.m4
functions.m4
gibson.m4
ibanez.m4
jem.m4
local.m4
radius.m4
roadstar.m4
vampire.m4