From 887a5d00917e0b154668a506917d3187417c5e7c Mon Sep 17 00:00:00 2001 From: Boian Bonev Date: Mon, 27 Nov 2006 14:12:31 -0800 Subject: [PATCH] Display local route table name correctly in output of: ip ru --- lib/rt_names.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rt_names.c b/lib/rt_names.c index 0e505596..8d019a00 100644 --- a/lib/rt_names.c +++ b/lib/rt_names.c @@ -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; }