chiark / gitweb /
Python IP addresses: Provide ipaddrset.py library
This library module provides a class for a set of IP addresses, stored
as a list of netmasks. This is in terms of the modern `ipaddr' module
by Scott Kitterman.
In this commit we introduce the ipaddrset.py module and its test
module. We also patch the Makefile to install it, and test in `make
check' that it produces the expected output.
However, due to the presence of the old Cendio ipaddr.py alongside,
the provided ipaddrset-test.py needs some hideous hacking of sys.path
if it is to work when run in the ordinary way inside the secnet source
tree. This will be removed in a later patch.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>