For pure A/B/C class addresses it just returns the class netmask, for subnets it tries to guess subnet mask. Please make sure the address you pass to this function is really a valid host address (i.e., call ipa_validate() first).
by the `mergedirs' script. Few more IP address manipulation functions and some fixes.
Complete resource manages and IP address handling.