inet: Get an address from a given interface and address family