Return netmask along with IP address when querying through netdev