[PATCH v3 02/11] ip: Add IN4_MASK() macro for IPv4 netmask calculation