ip_netmask: use ip_prefixlen to generate parameter for mask() function

example: ip_netmask returned 10.112.0.0 when 10.112.42.1/18 was given as parameter. now the correct output is produced