fix if_nametoindex return value when interface does not exist