diff options
author | jlam <jlam@pkgsrc.org> | 2002-08-25 21:19:46 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-08-25 21:19:46 +0000 |
commit | 8515688e4fc1e61508e192542688b3ff53ea4ca8 (patch) | |
tree | d2d4ad86fb660f5fc1d74e8ef4b3232c9aad1046 /net/zebra/patches/patch-ch | |
parent | 3612c287b035cd52b87361b84833d892629cf955 (diff) | |
download | pkgsrc-buildlink2.tar.gz |
Merge changes in the main trunk into the buildlink2 branch for thosebuildlink2
packages that have been converted to USE_BUILDLINK2.
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..cb30bd04d60 --- /dev/null +++ b/net/zebra/patches/patch-ch @@ -0,0 +1,37 @@ +$NetBSD: patch-ch,v 1.1.2.2 2002/08/25 21:20:56 jlam 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); + |