add misc/get_netmask with test