merged uTP branch into trunk (yay)
This commit is contained in:
@@ -61,15 +61,16 @@ int main()
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("%-18s%-18s%-35sinterface name\n", "destination", "network", "gateway");
|
||||
printf("%-18s%-18s%-35s%-7sinterface\n", "destination", "network", "gateway", "mtu");
|
||||
|
||||
for (std::vector<ip_route>::const_iterator i = routes.begin()
|
||||
, end(routes.end()); i != end; ++i)
|
||||
{
|
||||
printf("%-18s%-18s%-35s%s\n"
|
||||
printf("%-18s%-18s%-35s%-7d%s\n"
|
||||
, i->destination.to_string(ec).c_str()
|
||||
, i->netmask.to_string(ec).c_str()
|
||||
, i->gateway.to_string(ec).c_str()
|
||||
, i->mtu
|
||||
, i->name);
|
||||
}
|
||||
|
||||
@@ -82,15 +83,16 @@ int main()
|
||||
return 1;
|
||||
}
|
||||
|
||||
printf("%-18s%-18s%-35sflags\n", "address", "netmask", "name");
|
||||
printf("%-35s%-18s%-40s%-8sflags\n", "address", "netmask", "name", "mtu");
|
||||
|
||||
for (std::vector<ip_interface>::const_iterator i = net.begin()
|
||||
, end(net.end()); i != end; ++i)
|
||||
{
|
||||
printf("%-18s%-18s%-35s%s%s%s\n"
|
||||
printf("%-35s%-18s%-40s%-8d%s%s%s\n"
|
||||
, i->interface_address.to_string(ec).c_str()
|
||||
, i->netmask.to_string(ec).c_str()
|
||||
, i->name
|
||||
, i->mtu
|
||||
, (is_multicast(i->interface_address)?"multicast ":"")
|
||||
, (is_local(i->interface_address)?"local ":"")
|
||||
, (is_loopback(i->interface_address)?"loopback ":"")
|
||||
|
Reference in New Issue
Block a user