Commit graph

19 commits

Author SHA1 Message Date
Dinesh Dutt e39d05384d ospf6d: turn off expensive debugging
OSPF6 has very expensive LSDB and route debug on by default. This needs to be
turned off for scaled performance.

Signed-off-by: James Li <jli at cumulusnetworks.com>
Reviewed-by: Dinesh G Dutt <ddutt at cumulusnetworks.com>Summary:
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2013-11-07 18:15:42 -08:00
Tom Goff 8f228de7b3 ospf6d: Extend the "[no] debug ospf6 route" vty commands
* ospf6_route.c ([no_]debug_ospf6_route) Include memory as a debug
  option.  This allows ospf6 route memory debugging to be enabled or
  disabled interactively or from a config file.
2011-03-21 13:31:16 +00:00
Tom Goff e7a6d80d4f ospf6d: Route locking (memory) cleanup
* ospf6_route.c: (ospf6_route_best_next) Allows unlock route, even
  when there's no next route.  This is consistent with how
  ospf6_route_next() behaves.

* ospf6_intra.c: (ospf6_intra_prefix_lsa_remove) Make sure the last
  route considered is always unlocked.  This is needed when the for
  loop terminates because ospf6_route_is_prefix() returns zero.
2011-03-21 13:31:16 +00:00
Stephen Hemminger 1352ef32d7 lib: move check_bit into prefix common code
Make one version of check prefix bit, and put it inline
with proper prototype. This gets rid of some macro's and also some
assert() that can never happen on a non-broken compiler.

* bgpd/bgp_table.c
  * CHECK_BIT(): sayonara
  * check_bit(): sayonara
  * SET_LINK(): sayonara
  * set_link(): make use of prefix_bit() instead of check_bit()
  * bgp_node_match(): idem
  * bgp_node_lookup(): idem
  * bgp_node_get(): idem
* lib/prefix.h
  * prefix_bit(): new inline version of check_bit()
* lib/table.c
  * CHECK_BIT(): sayonara
  * check_bit(): sayonara
  * SET_LINK(): sayonara
  * set_link(): make use of prefix_bit() instead of check_bit()
  * route_node_match(): idem
  * route_node_lookup(): idem
  * route_node_get(): idem
* ospf6d/ospf6_lsdb.c
  * CHECK_BIT(): sayonara
  * ospf6_lsdb_lookup_next(): make use of prefix_bit() instead of
    CHECK_BIT()
  * ospf6_lsdb_type_router_head(): idem
  * ospf6_lsdb_type_head(): idem
* ospf6d/ospf6_route.c
  * CHECK_BIT(): sayonara
  * ospf6_route_match_head() make use of prefix_bit() instead of
  * CHECK_BIT()
2009-12-09 14:43:17 +03:00
Takashi Sogabe 86f72dcba3 Convert ospf6d over to quagga_gettime() wrappers. 2009-06-22 12:21:22 +01:00
Paul Jakma 6ac29a5107 [trivia] finish off static'ification of ospf6d and ripngd
2008-08-15 Paul Jakma <paul.jakma@sun.com>

	* {ospf6d,ripngd}/*: Finish job of marking functions as static, or
	  exporting declarations for them, to quell warning noise with
	  Quagga's GCC default high-level of warning flags. Thus allowing
	  remaining, more useful warnings to be more easily seen.
2008-08-22 19:52:58 +01:00
Paul Jakma cf1ce250d2 [ospf6d] GNU Zebra #3562: ABR Crash fix, memory fixes, route table debugs
2006-02-22  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>

	* valgrind check and memory fix
	* route table identification string added
	* ospf6d.h: version 0.9.7q
2006-05-15 10:46:07 +00:00
ajs 3b7b814c83 2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
* ospf6_route.c: (ospf6_route_show, ospf6_route_show_detail) Protect
	  against the possibility that the string returned by if_indextoname
	  may not terminate with '\0'.
2005-04-02 16:37:07 +00:00
hasso c6487d61a9 *.c: Change level of debug messages to LOG_DEBUG. 2004-12-24 06:00:11 +00:00
paul 0c083ee9d8 2004-10-10 Paul Jakma <paul@dishone.st>
* ospf6_route.c: Add const qualifier to various char arrays of
          constants. signed/unsigned fixes.
          (ospf6_linkstate_table_show) argv is const
        * ospf6_snmp.c: listnode typedef is dead.
          (ospf6_snmp_init) Take struct thread_master arg, needed for
          smux_init.
        * ospf6_snmp.h: update ospf6_snmp_init declaration.
        * ospf6d.c: (ospf6_init) add const qualifier to sargv, pass master
          to ospf_snmp6_init.
	* ospf6_asbr.c: const char update.
	* ospf6_interface.c: ditto, plus signed/unsigned fixes.
	  (ipv6_ospf6_cost) Check whether cost fits in u_int32_t and use
          strtoul.
	* ospf6_intra.c: const char update. Parenthesise expression.
	* ospf6_lsa.c: signed/unsigned and const char updates.
	* ospf6_proto.c: ditto.
	* ospf6_message.c: ditto.
	* ospf6_lsdb.c: signed/unsigned update.
	* ospf6_main.c: const char update.
	* ospf6_neighbor.c: ditto.
	* ospf6_spf.c: ditto.
	* ospf6_top.c: ditto.
2004-10-10 12:54:58 +00:00
hasso 9428f2dc4e Merge svn revisions 997 and 1000 from Zebra cvs repository. 2004-09-13 14:01:12 +00:00
hasso 4846ef64ba Merge svn revision 981 from Zebra cvs. 2004-09-03 06:04:00 +00:00
hasso 1e05838a4d Merge svn revision 975 from Zebra repository. 2004-09-01 21:36:14 +00:00
hasso ccb59b1104 SVN revisions 935-940 merge from Zebra CVS. 2004-08-25 09:10:37 +00:00
hasso 6452df092b SVN revisions 916-920 from Zebra. ABR support is almost done. 2004-08-15 05:52:07 +00:00
hasso 049207c31d SVN revision 907 from Zebra cvs repository. 2004-08-04 20:02:13 +00:00
hasso 508e53e2ee Ospf6d merge from Zebra repository with added privs stuff and merged
zclient changes.
2004-05-18 18:57:06 +00:00
paul cccf8af896 2003-10-13 Jay Fenlason <fenlason@redhat.com>
* ospf6d/ospf6_route.c: Fix 2 compile warnings.
2003-10-13 09:49:29 +00:00
paul 718e374419 Initial revision 2002-12-13 20:15:29 +00:00