Translate a quad-dotted decimal netmask to its bit length equivalent
Here's an elegant way of translating a subnet netmask from its quad-dotted decimal representation to a bit length. The initial netmask is represented as a Python list. To get from the string representation to the list just do:
0 σχόλια:
Post a Comment