diff options
author | itojun <itojun> | 2002-08-03 12:27:18 +0000 |
---|---|---|
committer | itojun <itojun> | 2002-08-03 12:27:18 +0000 |
commit | 91cb532ef94aec0ca11718522f41552de5dc7973 (patch) | |
tree | b12dcba925d17e827311476fd85cc56f2b596d7c /net/zebra/patches/patch-ch | |
parent | f7792174c01b20cea9c3fbd56cb72fd0fb7ee5e9 (diff) | |
download | pkgsrc-91cb532ef94aec0ca11718522f41552de5dc7973.tar.gz |
pull critical patches in from zebra cvs repo (i have been asking for release
of 0.93b, however, it's not happening yet)
- bgpd: bug in capability negotiation
- ospf6d: synchronize with zebra deamon correctly
Diffstat (limited to 'net/zebra/patches/patch-ch')
-rw-r--r-- | net/zebra/patches/patch-ch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net/zebra/patches/patch-ch b/net/zebra/patches/patch-ch new file mode 100644 index 00000000000..7e28a0d244f --- /dev/null +++ b/net/zebra/patches/patch-ch @@ -0,0 +1,37 @@ +$NetBSD: patch-ch,v 1.1 2002/08/03 12:27:25 itojun Exp $ + +diff -u1 ospf6d/ospf6_route.c /home/itojun/work/zebra/zebra/ospf6d/ospf6_route.c +--- ospf6d/ospf6_route.c Sun Jul 7 17:12:48 2002 ++++ /home/itojun/work/zebra/zebra/ospf6d/ospf6_route.c Sat Aug 3 21:06:12 2002 +@@ -1015,2 +1015,6 @@ + ++ u_int route_count = 0; ++ u_int path_count = 0; ++ u_int route_redundant = 0; ++ + memset (&prefix, 0, sizeof (struct prefix)); +@@ -1103,3 +1107,5 @@ + { +- if (! node->info) ++ struct ospf6_route_node *route = node->info; ++ ++ if (! route) + continue; +@@ -1107,6 +1113,15 @@ + if (detail) +- ospf6_route_show_detail (vty, node->info); ++ ospf6_route_show_detail (vty, route); + else +- ospf6_route_show (vty, node->info); ++ ospf6_route_show (vty, route); ++ ++ route_count++; ++ path_count += route->path_list->count; ++ if (route->path_list->count > 1) ++ route_redundant++; + } ++ ++ vty_out (vty, "===========%s", VTY_NEWLINE); ++ vty_out (vty, "Route: %d Path: %d Redundant: %d%s", ++ route_count, path_count, route_redundant, VTY_NEWLINE); + |