Adding network mask parsing

This is only parsing of the network mask. It is accessed easily by a getter, no
methods are provided to do any math or to get the network prefix.