[ipv4] Allow calculation of default subnet mask