netmask arithmetic?

Dan Stromberg strombrg at dcs.nac.uci.edu
Fri Feb 25 20:21:59 EST 2005


Before I go and reinvent the wheel, does anyone already have python code
that can do netmask arithmetic - for example, determining if a list of
hostnames are on subnets described by a list of networks+netmasks like:

128.200.34.0/24
128.195.16.128/25

...and so on?

Thanks!




More information about the Python-list mailing list