Display local route table name correctly in output of:
ip ru
This commit is contained in:
parent
288384f22f
commit
887a5d0091
|
|
@ -333,7 +333,7 @@ char * rtnl_rttable_n2a(__u32 id, char *buf, int len)
|
|||
{
|
||||
struct rtnl_hash_entry *entry;
|
||||
|
||||
if (id >= RT_TABLE_MAX) {
|
||||
if (id > RT_TABLE_MAX) {
|
||||
snprintf(buf, len, "%u", id);
|
||||
return buf;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue