BSD routing table works... that hurt much worse than it should have.
This commit is contained in:
parent
d315156733
commit
51766e6549
7 changed files with 94 additions and 34 deletions
|
@ -39,7 +39,7 @@ namespace ZeroTier {
|
|||
std::string RoutingTable::Entry::toString() const
|
||||
{
|
||||
char tmp[1024];
|
||||
Utils::snprintf(tmp,sizeof(tmp),"%s %s %s %d",destination.toString().c_str(),((gateway) ? gateway.toIpString().c_str() : "(link)"),device,metric);
|
||||
Utils::snprintf(tmp,sizeof(tmp),"%s %s %s %d",destination.toString().c_str(),((gateway) ? gateway.toIpString().c_str() : "<link>"),device,metric);
|
||||
return std::string(tmp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue