calculates various network masks etc. from given ip-address
