[PATCH 2/4] Minor improvements to IPv4 netmask handling