- xbt_dict_foreach(host_list, cursor, key, data) {
- simgrid::surf::NetCard * nc = sg_netcard_by_name_or_null(key);
- printf(" - Seen: \"%s\". Type: %s\n", key, nc->isRouter() ? "router" : (nc->isAS()?"AS":"host"));
+ int it;
+ sg_host_t host;
+ xbt_dynar_foreach(hosts, it, host) {
+ simgrid::kernel::routing::NetCard * nc = host->pimpl_netcard;
+ printf(" - Seen: \"%s\". Type: %s\n", host->cname(),
+ nc->isRouter() ? "router" : (nc->isNetZone() ? "netzone" : "host"));