]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Display local route table name correctly in output of:
authorBoian Bonev <bbonev@ipacct.com>
Mon, 27 Nov 2006 22:12:31 +0000 (14:12 -0800)
committerStephen Hemminger <shemminger@osdl.org>
Mon, 27 Nov 2006 22:12:31 +0000 (14:12 -0800)
ip ru

lib/rt_names.c

index 0e5055968752fca065bc53e182c3ceda18b634a6..8d019a00233c15353a956ae7bfe09d846d28427c 100644 (file)
@@ -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;
        }