[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quagga-dev
Subject:    [quagga-dev 437] PATCH: fix "show ip rip"
From:       Krzysztof Oledzki <oleq () ans ! pl>
Date:       2003-11-10 8:49:24
[Download RAW message or body]

Hello,

This patch reverse the patch that change "Network" length in "show ip rip"
command. It used to work just fine and then someone "fix" it. Currently,
output from this command is totally unreadable:

     Network         Next Hop         Metric From            Tag Time
S(r) 0.0.0.0/0       0.0.0.0               1 self              0
R(n) XXX.XXX.129.0/24XXX.XXX.210.11        2 XXX.XXX.210.11    0 00:43
R(n) XXX.8.133.0/30  XXX.XXX.210.2         3 XXX.XXX.210.2     0 00:43
S(r) XXX.XXX.210.0/230.0.0.0               1 self              0
C(i) XXX.XXX.210.0/280.0.0.0               1 self              0
C(r) XXX.XXX.210.16/290.0.0.0               1 self              0
R(n) XXX.XXX.210.64/27XXX.XXX.210.11        2 XXX.XXX.210.11    0 00:43
R(n) XXX.XXX.211.0/27XXX.XXX.210.11        2 XXX.XXX.210.11    0 00:43
R(n) XXX.XXX.211.224/27XXX.XXX.210.11        2 XXX.XXX.210.11    0 00:43
S(r) XXX.XXX.251.64/27XXX.XXX.210.13        1 self              0
S(r) XXX.XXX.251.64/30XXX.XXX.210.3         1 self              0
R(n) XXX.XXX.251.80/29XXX.XXX.210.3         4 XXX.XXX.210.3     0 00:45
S(r) XXX.XXX.251.80/30XXX.XXX.210.3         1 self              0
R(n) XXX.XXX.127.236/30XXX.XXX.210.3         4 XXX.XXX.210.3     0 00:45
C(r) XXX.XX.32.44/30 0.0.0.0               1 self              0
R(n) XXX.XX.32.180/30XXX.XXX.210.2         3 XXX.XXX.210.2     0 00:43
S(r) XXX.XX.46.64/26 XXX.XXX.210.13        1 self              0
S(r) XXX.XX.46.64/27 XXX.XXX.210.13        1 self              0


diff -Nur quagga-0.96.4-orig/ripd/ripd.c quagga-0.96.4/ripd/ripd.c
--- quagga-0.96.4-orig/ripd/ripd.c	Thu Oct 16 01:20:17 2003
+++ quagga-0.96.4/ripd/ripd.c	Sun Nov  9 02:48:22 2003
@@ -3247,7 +3247,7 @@
 	   "Sub-codes:%s"
            "      (n) - normal, (s) - static, (d) - default, (r) - redistribute,%s"
 	   "      (i) - interface%s%s"
-	   "     Network         Next Hop         Metric From            Tag Time%s",
+	   "     Network            Next Hop         Metric From            Tag Time%s",
 	   VTY_NEWLINE, VTY_NEWLINE,  VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE, VTY_NEWLINE);

   for (np = route_top (rip->table); np; np = route_next (np))
@@ -3261,7 +3261,7 @@
 		       rip_route_type_print (rinfo->sub_type),
 		       inet_ntoa (np->p.u.prefix4), np->p.prefixlen);

-	len = 21 - len;
+	len = 24 - len;

 	if (len > 0)
 	  vty_out (vty, "%*s", len, " ");


Best regards,

					Krzysztof Olędzki
["quagga-0.96.4-show-ip-rip-Network-len.patch.gz" (APPLICATION/octet-stream)]

_______________________________________________
Quagga-dev mailing list
Quagga-dev@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic