]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
19 years ago- make various defines conditional, so that they can be specified from
paul [Mon, 25 Apr 2005 15:13:42 +0000 (15:13 +0000)]
- make various defines conditional, so that they can be specified from
  the rpmbuild commandline, eg rpmbuild --define 'keep_build 1'

19 years ago2005-04-25 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 25 Apr 2005 14:53:46 +0000 (14:53 +0000)]
2005-04-25 Paul Jakma <paul.jakma@sun.com>

* thread.c: Kill unused TIMER_NO_SORT bits

19 years ago- arg, fix the missing slash. Beat myself with the diff of the last commit
paul [Mon, 25 Apr 2005 14:18:43 +0000 (14:18 +0000)]
- arg, fix the missing slash. Beat myself with the diff of the last commit
  to HACKING (which I added..)

19 years ago2005-04-25 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 25 Apr 2005 14:02:44 +0000 (14:02 +0000)]
2005-04-25 Paul Jakma <paul.jakma@sun.com>

* memory.c: Make the string field much wider
* memtypes.c: Correct the prefix list str/entry strings

19 years ago2005-04-25 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 25 Apr 2005 13:52:26 +0000 (13:52 +0000)]
2005-04-25 Paul Jakma <paul.jakma@sun.com>

* Makefile.am: Refer to source files via srcdir variable, fix
  out-of-tree build breakage.

19 years ago2005-04-25 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 25 Apr 2005 00:37:03 +0000 (00:37 +0000)]
2005-04-25 Paul Jakma <paul.jakma@sun.com>

* HACKING: Add some notes about build system changes, to
  document common oversights (common for me anyway).
  Seperate sections with two newlines, easier to read.

19 years ago2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 22 Apr 2005 14:23:34 +0000 (14:23 +0000)]
2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* thread.h: Fix type for struct thread_master add_type: should be
  unsigned char.  Also, add some documentation of thread_add_background
  args.  And remove extraneous declaration of
  show_thread_work_queues_cmd.

19 years ago2005-04-22 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 22 Apr 2005 13:44:17 +0000 (13:44 +0000)]
2005-04-22 Paul Jakma <paul.jakma@sun.com>

* memory.h: Move include of memtypes.h to after the definition of
  struct memory_list, gcc 4.0 doesn't like arrays of incomplete
  types.

19 years ago2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 22 Apr 2005 13:14:49 +0000 (13:14 +0000)]
2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* bgpd.8,isisd.8,ospf6d.8,ospfd.8,ripd.8,ripngd.8,zebra.8: Fix
  spelling mistake: idenifier -> identifier.

19 years ago2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 22 Apr 2005 12:56:37 +0000 (12:56 +0000)]
2005-04-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* bgpd.8,isisd.8,ospf6d.8,ospfd.8,ripd.8,ripngd.8,zebra.8: Fix
  spelling mistake: intrefaces -> interfaces.

19 years ago- fix comment
paul [Fri, 22 Apr 2005 00:57:03 +0000 (00:57 +0000)]
- fix comment

19 years ago2004-05-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Apr 2005 00:54:44 +0000 (00:54 +0000)]
2004-05-22 Paul Jakma <paul@dishone.st>

* Makefile.am: Build heavythread

19 years ago2004-05-22 Paul Jakma <paul@dishone.st>
paul [Fri, 22 Apr 2005 00:50:08 +0000 (00:50 +0000)]
2004-05-22 Paul Jakma <paul@dishone.st>

* heavy-thread.c: Andrew Schorr's adaptation of heavy.c to use a
  background thread to avoid responsivity problems.

19 years ago2005-04-22 Paul Jakma <paul.jakma@sun.com>
paul [Fri, 22 Apr 2005 00:43:47 +0000 (00:43 +0000)]
2005-04-22 Paul Jakma <paul.jakma@sun.com>

* thread.h: Add background thread type and thread_add_background
  macro and accompanying funcname_... function.
  export thread_should_yield, background threads can use it.
  Lower thread yield time to 10ms, 100ms is noticeable lag and
  a thread would only be /starting/ to finish sometime afterward.
* thread.c: (general) Add background thread type and schedule
  nearly all thread types through the ready list for fairness.
  (timeval_adjust) static qualifier missing
  (vty_out_cpu_thread_history) add support for printout of
  background threads
  (show_thread_cpu) ditto.
  (thread_master_debug) add debug of background list
  (thread_master_create) fixup long line
  (thread_add_unuse) add asserts for required state.
  (thread_master_free) free background thread list
  (funcname_thread_add_timer_timeval) make generic, able to
  support arbitrary timer-like thread types.
  (funcname_thread_add_timer) pass thread type to .._add_timer_timeval
  (funcname_thread_add_timer_msec) ditto
  (funcname_thread_add_background) Add a background thread, with an
  optional millisecond delay factor, using .._add_timer_timeval.
  (thread_cancel) Add background thread type.
  Move the thread_list_delete common to all cases to bottom of
  function, after the switch statement..
  (thread_cancel_event) indent
  (thread_timer_wait) Static qualifier, and make it able to cope
  with arbitrary timer-like thread lists, so its of use to
  background threads too.
  (thread_process_fd) static qualifier. Again, make it take a list
  reference rather than thread_master. Fix indentation.
  (thread_timer_process) Check for ready timer-like threads in the
  given list and move them on to the ready list - code originally
  embedded in thread_fetch.
  (thread_fetch) Schedule all threads, other than events, through
  the ready list, to ensure fairness. Timer readying code moved to
  thread_timer_process so it can be reused for background threads.
  Remove the unneeded quagga_sigevent_process, as pointed out by
  John Lin <john.ch.lin@gmail.com>.
  (thread_should_yield) make this available.

19 years ago- bah, commit changelog
paul [Thu, 21 Apr 2005 17:23:48 +0000 (17:23 +0000)]
- bah, commit changelog

19 years ago2004-05-21 Paul Jakma <paul@dishone.st>
paul [Thu, 21 Apr 2005 16:58:44 +0000 (16:58 +0000)]
2004-05-21 Paul Jakma <paul@dishone.st>

* heavy.c: Add a timer thread to demonstrate thread interactivity,
  Add a daemon_exit command to assist with debugging (eg for memory
  tracers, etc..)

19 years ago2005-04-21 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 21 Apr 2005 10:24:43 +0000 (10:24 +0000)]
2005-04-21 Paul Jakma <paul.jakma@sun.com>

* Makefile.am: pkginfo.%.tmpl is a generated file, srcdir prefix
  is not appropriate.

19 years agoThere is no RIPv3. It is a RIPng (by the way for your information, the version of...
jardin [Wed, 20 Apr 2005 09:38:17 +0000 (09:38 +0000)]
There is no RIPv3. It is a RIPng (by the way for your information, the version of RIPng is v1).

19 years ago2005-04-20 Paul Jakma <paul@dishone.st>
paul [Wed, 20 Apr 2005 09:08:27 +0000 (09:08 +0000)]
2005-04-20 Paul Jakma <paul@dishone.st>

* Makefile.am: Add @INCLUDES@ and srcdir to allow out-of-tree
  builds to work.

19 years ago2004-05-19 Paul Jakma <paul@dishone.st>
paul [Tue, 19 Apr 2005 21:28:36 +0000 (21:28 +0000)]
2004-05-19 Paul Jakma <paul@dishone.st>

* heavy.c: test programme to show how long-running functions
  kill responsiveness. Demonstrating the most niggly problem
  left in bgpd.

19 years ago2005-04-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 16 Apr 2005 17:11:24 +0000 (17:11 +0000)]
2005-04-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* configure.ac: Added AC_ARG_ENABLE(time-check).  By default,
  warning messages will now be printed for threads or commands that take
  longer than 5 seconds, but this configure argument can be used
  to disable the checks or change the threshold.
* thread.h (thread_consumed_time): Declare new function to calculate
  elapsed microseconds.
* thread.c (thread_consumed_time): Must be global not static so we
  can call it from lib/vty.c:vty_command.
  (thread_should_yield): Surround with `#if 0' to make clear that this
  function is not currently being used anywhere.
  (thread_call): If CONSUMED_TIME_CHECK is defined, print a CPU HOG
  warning message if the thread takes more than CONSUMED_TIME_CHECK
  microseconds.
* vty.c (vty_command): If CONSUMED_TIME_CHECK is defined, print a CPU
  HOG warning message if the command takes more than CONSUMED_TIME_CHECK
  microseconds.

19 years ago2005-04-16 Paul Jakma <paul@dishone.st>
paul [Sat, 16 Apr 2005 15:51:05 +0000 (15:51 +0000)]
2005-04-16 Paul Jakma <paul@dishone.st>

* memtypes.c: the comment about use of comments in the comments
  headers was causing comment within comment warnings from compiler
* memtypes.awk: Add extensive comments on the file format for
  memtypes.c.
  tighten the pattern for the MTYPE matching action (suggestion from
  Andrew) and tighten which field we try the match on.

19 years ago2005-04-16 Paul Jakma <paul.jakma@sun.com>
paul [Sat, 16 Apr 2005 15:38:23 +0000 (15:38 +0000)]
2005-04-16 Paul Jakma <paul.jakma@sun.com>

* configure.ac: check for gawk, needed to build memtypes.h

19 years ago2005-04-15 Paul Jakma <paul@dishone.st>
paul [Fri, 15 Apr 2005 22:18:37 +0000 (22:18 +0000)]
2005-04-15 Paul Jakma <paul@dishone.st>

        * Makefile.am: memtypes.awk is gawk dependent, use the GAWK automake
  var.
* memtypes.h: New file, auto-generated, checked in for convenience.

19 years ago2005-04-15 Paul Jakma <paul@dishone.st>
paul [Fri, 15 Apr 2005 22:12:51 +0000 (22:12 +0000)]
2005-04-15 Paul Jakma <paul@dishone.st>

* topology/Makefile.am: random.c is a source of libtopology, so list
  it.

19 years ago2005-04-15 Zhipeng Gong <zpgong@cdc.3upsystems.com>
paul [Fri, 15 Apr 2005 12:10:17 +0000 (12:10 +0000)]
2005-04-15 Zhipeng Gong <zpgong@cdc.3upsystems.com>

* ospf_abr.c: (ospf_abr_announce_network_to_area) dont forget
  to approve LSAs for the case where metric has changed, lsa gets
  flushed otherwise. (backport candidate).

19 years ago2005-04-15 Paul Jakma <paul@dishone.st>
paul [Fri, 15 Apr 2005 11:47:15 +0000 (11:47 +0000)]
2005-04-15 Paul Jakma <paul@dishone.st>

* memtypes.c: The new, unified location for memory type definitions.
  The memtype enum and declarations for memory_lists are built from
          this automatically and put into memtypes.h.
        * memtypes.awk: New script to generate memtypes.h from memtypes.c
        * memory.h: Finally, the enum can banished!
        * memory.c: Finally, the seperate mtype memory_list definitions can
          be banished!
          (log_memstats) Increase width of fields
          (show_memory_zebra_cmd) display zebra specific memory types.
          Increase width of fields.
        * Makefile.am: Add memtypes.{c,h}, add BUILT_SOURCES for memtypes.h
          Add a rule to build memtypes.h using memtypes.awk.
          Add memtypes.awk to EXTRA_DIST.

19 years ago2005-04-13 Paul Jakma <paul.jakma@sun.com>
paul [Wed, 13 Apr 2005 03:37:23 +0000 (03:37 +0000)]
2005-04-13 Paul Jakma <paul.jakma@sun.com>

* Makefile.am: {i,r}.manifest are (or will be) system provided files
  and not in CVS, hence dont depend on them or distribute them.

19 years ago- add changelog
paul [Wed, 13 Apr 2005 03:32:23 +0000 (03:32 +0000)]
- add changelog

19 years ago2004-05-13 Paul Jakma <paul@dishone.st>
paul [Wed, 13 Apr 2005 03:31:35 +0000 (03:31 +0000)]
2004-05-13 Paul Jakma <paul@dishone.st>

* test-buffer.c: Andrew's buffer tester
* test-memory.c: basic memory tester
* Makefile.am: Add new tests

19 years ago * isis_adjacency.c: Fix typo introduced with listloop cleanup.
hasso [Tue, 12 Apr 2005 14:48:19 +0000 (14:48 +0000)]
* isis_adjacency.c: Fix typo introduced with listloop cleanup.

19 years ago2005-04-11 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 11 Apr 2005 20:22:09 +0000 (20:22 +0000)]
2005-04-11 Paul Jakma <paul.jakma@sun.com>

* .cvsignore: Add built files

19 years ago2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Mon, 11 Apr 2005 15:51:40 +0000 (15:51 +0000)]
2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

Implement non-blocking zclient I/O with buffering.
* zclient.h (struct zclient): Add two fields to support non-blocking
  I/O: struct buffer *wb, and struct thread *t_write.
  (zclient_free): Remove function.
  (zebra_redistribute_send): Change 2nd arg from socket fd to
  struct zclient * (needed to support non-blocking I/O and buffering).
  (zclient_send_message): New function to send an arbitrary
  message with non-blocking I/O.
* zclient.c (zclient_new): Create write buffer.
  (zclient_free): Remove unused function.
  (zclient_stop): Must cancel new t_write thread.  Also, reset
  all buffers: ibuf, obuf, and wb.
  (zclient_failed): New helper function for typical error handling.
  (zclient_flush_data): New thread to flush queued data.
  (zclient_send_message): New function to send the message in
  zclient->obuf to zebra using non-blocking I/O and buffering.
  (zebra_message_send, zapi_ipv4_route, zapi_ipv6_route): Use
  new zclient_send_message function instead of calling writen.
  (zclient_start): Set socket non-blocking.  Also, change 2nd arg
  to zebra_redistribute_send from zclient->sock to zclient.
  (zebra_redistribute_send): Change 2nd arg to struct zclient *.
  Can now use zclient->obuf to assemble the message instead of
  allocating a temporary stream.  And call zclient_send_message to
  send the message instead of writen.
  (zclient_read): Convert to support non-blocking I/O by using
  stream_read_try instead of deprecated stream_read.
  (zclient_redistribute): Change 2nd arg to zebra_redistribute_send
  from zclient->sock to zclient.
* ospf6_zebra.c (ospf6_zebra_redistribute, ospf6_zebra_no_redistribute):
  Change 2nd arg to zebra_redistribute_send from zclient->sock
  to zclient.
* ospf_zebra.c (ospf_zebra_add): Call zclient_send_message instead
  of writen.
* rip_zebra.c (rip_redistribute_set, rip_redistribute_unset,
  rip_redistribute_clean): Change 2nd arg to zebra_redistribute_send
  from zclient->sock to zclient.
* ripng_zebra.c (ripng_redistribute_unset, ripng_redistribute_clean):
  Change 2nd arg to zebra_redistribute_send from zclient->sock
  to zclient.
* bgp_zebra.c (bgp_redistribute_set, bgp_redistribute_unset):
  The 2nd arg to zebra_redistribute_send is now zclient instead of
  zclient->sock.
* isis_zebra.h (isis_zebra_finish): Remove declaration of unused
  function.
* isis_zebra.c (isis_zebra_route_add_ipv4): Call zclient_send_message
  to send the message to zebra instead of calling writen directly, since
  zclient_send_message understands non-blocking I/O and will manage
  the buffer queue appropriately.
  (isis_zebra_finish): Remove unused function, particularly since
  the zclient_free function has been removed.

19 years ago2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Mon, 11 Apr 2005 14:55:55 +0000 (14:55 +0000)]
2005-04-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* configure.ac: Move AC_CANONICAL_* stuff before AM_INIT_AUTOMAKE to
  eliminate warning message about AC_ARG_PROGRAM being called
  before AC_CANONICAL_TARGET.

19 years ago2005-04-11 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 11 Apr 2005 07:58:35 +0000 (07:58 +0000)]
2005-04-11 Paul Jakma <paul.jakma@sun.com>

* Makefile.am: README.txt to EXTRA_DIST
* README.txt: new file, package creation, install, usage notes.

19 years ago2005-04-11 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 11 Apr 2005 07:10:47 +0000 (07:10 +0000)]
2005-04-11 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Call AC_CANONICAL_{BUILD,TARGET} macros. Target isnt
  set otherwise, afaict. AC_SUBST enable_{user,group,vty_group} and
  quagga_statedir - the Solaris package bits for one need this.
  configure the solaris/ Makefile.
* Makefile.am: solaris is a subdir - unconditional or else it wont
  be included in non-solaris made dists.

19 years ago2005-04-11 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 11 Apr 2005 07:05:21 +0000 (07:05 +0000)]
2005-04-11 Paul Jakma <paul.jakma@sun.com>

* (all) Initial check-in of files for building S10 packages
* protototype.*.in: package prototype files for SysV packages
* *.xml.in: SMF manifests for Quagga daemons
* pkginfo.*.tmpl.in: daemon specific pkginfo, refererenced
  by prototype files.
* pkginfo.tmpl.in: Quagga common pkginfo bits
* quagga.init.in: SMF method script
* Makefile.am: Automake file for building packages
* depend.*: Solaris 10 dependencies for packages, referenced by
  prototype files.
* .cvsignore: no idea what this is for...

19 years ago2005-04-10 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Apr 2005 16:54:26 +0000 (16:54 +0000)]
2005-04-10 Paul Jakma <paul@dishone.st>

* if_ioctl_solaris.c: (if_lookup_linklocal) fix order of args
  in ALL_LIST_ELEMENTS_RO macro.

19 years ago2005-04-10 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Apr 2005 16:43:40 +0000 (16:43 +0000)]
2005-04-10 Paul Jakma <paul@dishone.st>

* quagga.info: Update to match bgpd.texi addition

19 years ago2005-04-10 Paul Jakma <paul.jakma@sun.com>
paul [Sun, 10 Apr 2005 16:31:51 +0000 (16:31 +0000)]
2005-04-10 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Fix host string recognition for Solaris Nevada aka
  solaris2.10.1, and hopefully future such strings.

19 years ago2005-04-10 Paul Jakma <paul@dishone.st>
paul [Sun, 10 Apr 2005 15:58:10 +0000 (15:58 +0000)]
2005-04-10 Paul Jakma <paul@dishone.st>

* Makefile.am: topology should not be a conditional SUBDIR,
  otherwise make dist breaks.
* topology/Makefile.am: remove EXTRA_DIST of files which dont
  exist in that directory, broke make dist.
* isisd.c: (show_isis_generated_topology_cmd) convert LIST_LOOP
* isis_lsp.c: (generate_topology_lsps) ditto
  (build_topology_lsp_data) ditto

19 years ago2005-04-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sun, 10 Apr 2005 15:01:56 +0000 (15:01 +0000)]
2005-04-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* zserv.c (zebra_client_read): Fix bug: first read attempt should
  read ZEBRA_HEADER_SIZE minus the number of bytes already read.
  Improve efficiency by maintaining a calculation of the number
  of bytes read instead of calling stream_get_endp multiple times.
  If message length is too small, issue a warning message (not debug)
  before closing the connection.  And also check that message length
  is not too big.

19 years ago * rt_netlink.c: One tiny missing comma caused pointless debug messages
hasso [Sat, 9 Apr 2005 16:59:28 +0000 (16:59 +0000)]
* rt_netlink.c: One tiny missing comma caused pointless debug messages
  about IPv6 nexthops.

19 years ago * rt_netlink.c (netlink_parse_info): Fix warning. It's safe to cast
hasso [Sat, 9 Apr 2005 16:38:51 +0000 (16:38 +0000)]
* rt_netlink.c (netlink_parse_info): Fix warning. It's safe to cast
  status to unsigned here, because we already checked that it isn't
  negative or 0.
* rt_netlink.c (netlink_interface_addr): Prefix length belongs to the
  address, not to the interface.
* rt_netlink.c (netlink_route_multipath): Fix debug. No useless info
  is printed out now and IPv6 info is handeled.

19 years ago * routemap.c: Show description in "show route-map" output.
hasso [Sat, 9 Apr 2005 13:27:50 +0000 (13:27 +0000)]
* routemap.c: Show description in "show route-map" output.

19 years ago * bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
hasso [Sat, 9 Apr 2005 13:07:47 +0000 (13:07 +0000)]
* bgp_vty.c: Make "exit-address-family" work in IPv4 unicast address
  family node.

[backport candidate]

19 years ago2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 8 Apr 2005 19:02:04 +0000 (19:02 +0000)]
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* sigevent.c: On GNU_LINUX, check whether __USE_GNU is already defined.

19 years ago2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 8 Apr 2005 18:50:40 +0000 (18:50 +0000)]
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* vty.c: (vty_log_fixed) Use casts to (void *) to try to eliminate
  compiler warnings when assigning a (const char *) value to
  struct iovec iov_base.

19 years ago2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 8 Apr 2005 16:42:03 +0000 (16:42 +0000)]
2005-04-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* zebra.h: If GNU_LINUX is defined, then define _GNU_SOURCE.  This
  fixes a problem where we were not getting the declaration of strnlen
  in <string.h>.

19 years ago * bgpd.texi: Document new "bgp bestpath as-path confed" command.
hasso [Fri, 8 Apr 2005 15:40:36 +0000 (15:40 +0000)]
* bgpd.texi: Document new "bgp bestpath as-path confed" command.
* bgp_aspath.[ch], bgp_route.c, bgp_vty.c, bgpd.[ch]: Allow to enable
  the length of confederation path segments to be included during the
  as-path length check in the best path decision.

19 years ago * routemap.[ch]: Added "description ..." command.
hasso [Fri, 8 Apr 2005 14:20:18 +0000 (14:20 +0000)]
* routemap.[ch]: Added "description ..." command.
  Closes Bugzilla #167.

19 years ago * prefix.[hc]: Pass argument to the inet6_ntoa by value making it more
hasso [Fri, 8 Apr 2005 01:30:51 +0000 (01:30 +0000)]
* prefix.[hc]: Pass argument to the inet6_ntoa by value making it more
  inet_ntoa alike.
* ripngd.[hc], ripng_interface.c, ripng_peer.c: inet6_ntoa() takes
  argument now by value.

19 years ago * extract.pl.in: Ignore "router zebra".
hasso [Thu, 7 Apr 2005 18:42:09 +0000 (18:42 +0000)]
* extract.pl.in: Ignore "router zebra".

19 years ago * Makefile.am: Remove rebuild4 target, it's not used any more by build
hasso [Thu, 7 Apr 2005 17:07:39 +0000 (17:07 +0000)]
* Makefile.am: Remove rebuild4 target, it's not used any more by build
  procedure. Define vtysh_cmd_FILES. Use EXTRA_DIST.

19 years ago2005-04-07 Paul Jakma <paul.jakma@sun.com>
paul [Thu, 7 Apr 2005 07:30:20 +0000 (07:30 +0000)]
2005-04-07 Paul Jakma <paul.jakma@sun.com>

* (global): Fix up list loops to match changes in lib/linklist,
  and some basic auditing of usage.
* configure.ac: define QUAGGA_NO_DEPRECATED_INTERFACES
* HACKING: Add notes about deprecating interfaces and commands.
* lib/linklist.h: Add usage comments.
  Rename getdata macro to listgetdata.
  Rename nextnode to listnextnode and fix its odd behaviour to be
  less dangerous.
  Make listgetdata macro assert node is not null, NULL list entries
          should be bug condition.
          ALL_LIST_ELEMENTS, new macro, forward-referencing macro for use
          with for loop, Suggested by Jim Carlson of Sun.
          Add ALL_LIST_ELEMENTS_RO for cases which obviously do not need the
          "safety" of previous macro.
  LISTNODE_ADD and DELETE macros renamed to ATTACH, DETACH, to
  distinguish from the similarly named functions, and reflect their
  effect better.
  Add a QUAGGA_NO_DEPRECATED_INTERFACES define guarded section
  with the old defines which were modified above,
  for backwards compatibility - guarded to prevent Quagga using it..
* lib/linklist.c: fix up for linklist.h changes.
* ospf6d/ospf6_abr.c: (ospf6_abr_examin_brouter) change to a single
  scan of the area list, rather than scanning all areas first for
  INTER_ROUTER and then again for INTER_NETWORK. According to
  16.2, the scan should be area specific anyway, and further
  ospf6d does not seem to implement 16.3 anyway.

19 years ago * lib/prefix.[hc]: inet6_ntoa utility function copied from
hasso [Tue, 5 Apr 2005 14:36:49 +0000 (14:36 +0000)]
* lib/prefix.[hc]: inet6_ntoa utility function copied from
  ripngd/ripngd.c (inet6_ntop).
* ripngd.[hc]: Remove inet6_ntop() and any usage of it. inet6_ntoa()
  from lib is used now.
* ripng_interface.c: inet6_ntop() -> inet6_ntoa().
* ripng_peer.c: inet6_ntop() -> inet6_ntoa().

19 years ago2005-04-05 Paul Jakma <paul@dishone.st>
paul [Tue, 5 Apr 2005 10:14:50 +0000 (10:14 +0000)]
2005-04-05 Paul Jakma <paul@dishone.st>

* HACKING: Expand on the importance of supplying good ChangeLog's in
  the PATCH SUBMISSION section.

19 years ago2005-04-05 Paul Jakma <paul@dishone.st>
paul [Tue, 5 Apr 2005 10:10:06 +0000 (10:10 +0000)]
2005-04-05 Paul Jakma <paul@dishone.st>

* HACKING: remove the 'manually patch redhat/quagga.spec' bit
  from RELEASE section. Let the rpm revision be CONFDATE, will work
  fine.

19 years ago2005-04-05 Paul Jakma <paul@dishone.st>
paul [Tue, 5 Apr 2005 08:04:18 +0000 (08:04 +0000)]
2005-04-05 Paul Jakma <paul@dishone.st>

* Makefile.am: Get rid of built_sources. It causes them to be added
  to dist, and the dist host can not generate the PDFs.

19 years ago2004-04-05 Paul Jakma <paul@dishone.st>
paul [Tue, 5 Apr 2005 00:45:23 +0000 (00:45 +0000)]
2004-04-05 Paul Jakma <paul@dishone.st>

* lib/vty.c: Improve logging of failures to open vty socket(s).
  See bugid #163.
* zebra/zserv.c: print more helpful errors when we fail to successfully
  bind and listen on zserv socket. Closes bugzilla #163.

19 years ago * configure.ac: Fix AC_LANG_SOURCE usage. It needs double square
hasso [Sun, 3 Apr 2005 23:46:37 +0000 (23:46 +0000)]
* configure.ac: Fix AC_LANG_SOURCE usage. It needs double square
  brackets around source. Single ones broke square brackets in the
  code (arrays).

19 years ago * configure.ac: Use AC_RUN_IFELSE instead of obsolete AC_TRY_RUN macro
hasso [Sun, 3 Apr 2005 13:07:21 +0000 (13:07 +0000)]
* configure.ac: Use AC_RUN_IFELSE instead of obsolete AC_TRY_RUN macro
  and define action for cross-compiling.

[backport candidate]

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sun, 3 Apr 2005 03:40:52 +0000 (03:40 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* if_ioctl.c: (interface_list_ioctl) Use if_get_by_name_len.
* if_proc.c: (ifaddr_proc_ipv6) Increase size of ifname buffer to
  avoid overflow.
* kernel_socket.c: (ifan_read) Use if_get_by_name_len.
* if.h: Fix comments to reflect that if_lookup_by_name and
  if_get_by_name now require the argument strings to be NUL-terminated.
* if.c: (if_lookup_by_name) Compare using strcmp.
  (if_get_by_name) Pass strlen(ifname) as 2nd arg to if_create.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 23:23:55 +0000 (23:23 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_interface.h: (ospf_if_lookup_by_name) Remove declaration of a
  function that does not exist.
* ospf6_interface.[ch]: (ospf6_interface_lookup_by_name) Remove unused
  function.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 23:16:41 +0000 (23:16 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_zebra.c: (zebra_interface_if_lookup) Must use
  if_lookup_by_name_len.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 23:09:52 +0000 (23:09 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* isis_zebra.c: (isis_zebra_if_del) Must use if_lookup_by_name_len.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 23:05:56 +0000 (23:05 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* if.c: (if_nametoindex) The man page is rather vague, but it seems
  like the argument to if_nametoindex has an implicit maximum length
  of IFNAMSIZ characters.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 22:50:38 +0000 (22:50 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* if.h: (if_lookup_by_name_len, if_get_by_name_len) New functions.
* if.c: (if_lookup_by_name_len, if_get_by_name_len) New functions.
  (if_get_by_name) Tighten up code.
  (interface) Use new function if_get_by_name_len.
* zclient.c: (zebra_interface_add_read) Use new if_get_by_name_len
  function.
  (zebra_interface_state_read) Use new if_lookup_by_name_len function.
* kernel_socket.c: (ifm_read) Use new if_lookup_by_name_len function
  to save a memcpy.
* if_ioctl_solaris.c: (interface_list_ioctl) Fix subtle bug with new
  if_get_by_name_len function.
* ospf_interface.c: (ospf_vl_new) Use strnlen to fix call to if_create.

19 years ago * configure.ac: Add --enable-isis-topology to enable isisd topology
hasso [Sat, 2 Apr 2005 19:03:39 +0000 (19:03 +0000)]
* configure.ac: Add --enable-isis-topology to enable isisd topology
  generator code.
* isisd/Makefile.am: Variables to handle conditonal compiling of
  topology generator code.
* isisd/isis_lsp.c: lsppdu_realloc() is used by topology generator.
* isisd/isisd.c: Rename show_isis_topology_cmd to not conflict the one
  in the isis_spf.c.
* isisd/isisd.h: Remove TOPOLOGY_GENERATE define, it will be defined in
  toplevel config.h if topology generator is enabled.
* isisd/topology/Makefile.am: Handle the libtoolized Quagga libraries.

19 years ago2005-04-02 Paul Jakma <paul@dishone.st>
paul [Sat, 2 Apr 2005 18:53:00 +0000 (18:53 +0000)]
2005-04-02 Paul Jakma <paul@dishone.st>

* Makefile.am: Urg, dont use automake _SOURCES, _BUILT_SOURCES
  for figures, automake doesnt know anything about them.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 18:48:39 +0000 (18:48 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* str.c: Replace strlcpy and strlcat with actual working versions
  copied from rsync-2.6.2/lib/compat.c.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 18:38:43 +0000 (18:38 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

Fix problems when netlink interfaces are renamed (same ifindex used
for a new interface).  Start cleaning up some problems with the way
interface names are handled.
* interface.c: (if_new_intern_ifindex) Remove obsolete function.
  (if_delete_update) After distributing the interface deletion message,
  set ifp->ifindex to IFINDEX_INTERNAL.
  (if_dump_vty) Detect pseudo interface by checking if ifp->ifindex is
  IFINDEX_INTERNAL.
  (zebra_interface) Check return code from interface_cmd.func.
  Do not set internal ifindex values to if_new_intern_ifindex(),
  since we now use IFINDEX_INTERNAL for all pseudo interfaces.
* kernel_socket.c: (ifm_read) Fix code and comments to reflect that
  all internal interfaces now have ifp->ifindex set to IFINDEX_INTERNAL.
        * rt_netlink.c: (set_ifindex) New function used to update ifp->ifindex.
  Detects interface rename events by checking if that ifindex is already
  being used.  If it is, delete the old interface before assigning
  the ifindex to the new interface.
  (netlink_interface, netlink_link_change) Call set_ifindex to update
  the ifindex.
* if.h: Remove define for IFINDEX_INTERNBASE and add define
  IFINDEX_INTERNAL 0, since all internal (i.e. non-kernel) pseudo-
  interfaces should have ifindex set to 0.
  (if_new) Remove function.
  (if_delete_retain) New function to delete an interface without
  removing from iflist and freeing the structure.
  (ifname2ifindex) New function.
* if.c: (if_new) Remove function (absorb into if_create).
  (if_create) Replace function if_new with call to calloc.
  Set ifp->ifindex to IFINDEX_INTERNAL.  Fix off-by-one error
  in assert to check length of interface name.  Add error message
  if interface with this name already exists.
  (if_delete_retain) New function to delete an interface without
  removing from iflist and freeing the structure.
  (if_delete) Implement with help of if_delete_retain.
  (ifindex2ifname) Reimplement using if_lookup_by_index.
  (ifname2ifindex) New function to complement ifindex2ifname.
  (interface) The interface command should check the name length
  and fail with a warning message if it is too long.
  (no_interface) Fix spelling in warning message.
  (if_nametoindex) Reimplement using if_lookup_by_name.
  (if_indextoname, ifaddr_ipv4_lookup) Reimplement using
  if_lookup_by_index.
* bgp_zebra.c: (bgp_interface_delete) After deleting, set ifp->ifindex
  to IFINDEX_INTERNAL.
* isis_zebra.c: (isis_zebra_if_del) Call if_delete_retain instead
  of if_delete, since it is generally not safe to remove interface
  structures.  After deleting, set ifp->ifindex to IFINDEX_INTERNAL.
  (zebra_interface_if_lookup) Tighten up code.
* ospf6_zebra.c: (ospf6_zebra_if_del) Previously, this whole function
  was commented out.  But this is not safe: we should at least update
  the ifindex when the interface is deleted.  So the new version
  updates the interface status and sets ifp->ifindex to
  IFINDEX_INTERNAL.
  (ospf6_zebra_route_update) Use if_indextoname properly.
* ospf_vty.c: (show_ip_ospf_interface_sub) Show ifindex and interface
  flags to help with debugging.
* ospf_zebra.c: (ospf_interface_delete) After deleting, set ifp->ifindex
  to IFINDEX_INTERNAL.
  (zebra_interface_if_lookup) Make function static.  Tighten up code.
* rip_interface.c: (rip_interface_delete) After deleting, set
  ifp->ifindex to IFINDEX_INTERNAL.
* ripng_interface.c: (ripng_interface_delete) After deleting, set
  ifp->ifindex to IFINDEX_INTERNAL.

19 years ago2005-04-02 Paul Jakma <paul@dishone.st>
paul [Sat, 2 Apr 2005 17:24:43 +0000 (17:24 +0000)]
2005-04-02 Paul Jakma <paul@dishone.st>

* .cvsignore: ignore eps files, built from sources

19 years ago2005-04-02 Paul Jakma <paul@dishone.st>
paul [Sat, 2 Apr 2005 17:13:33 +0000 (17:13 +0000)]
2005-04-02 Paul Jakma <paul@dishone.st>

* INSTALL.quagga.txt: Add note about additional CVS build
  requirements, if one wishes to build ps/pdf docs.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 16:37:07 +0000 (16:37 +0000)]
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'.

19 years ago2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 2 Apr 2005 16:01:05 +0000 (16:01 +0000)]
2005-04-02 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* configure.ac: Add strnlen to AC_CHECK_FUNCS.
* zebra.h: Should include str.h to pick up missing functions.
* str.h: Declare strnlen if needed.
* str.c: Do not include str.h since zebra.h now includes it.
  (strnlen) New function.

19 years ago2005-04-02 Paul Jakma <paul@dishone.st>
paul [Sat, 2 Apr 2005 12:13:59 +0000 (12:13 +0000)]
2005-04-02 Paul Jakma <paul@dishone.st>

* Makefile.am: quagga_TEXINFOS should depend on figures_BUILT_SOURCES.

19 years ago2005-04-02 Paul Jakma <paul@dishone.st>
paul [Sat, 2 Apr 2005 10:18:42 +0000 (10:18 +0000)]
2005-04-02 Paul Jakma <paul@dishone.st>

* fig{-{normal,rs}-processing,_topologies_{rs,full}}.dia: new
          files, dia diagramme XML versions of the original corresponding
          EPS encapsulated bitmaps.
* fig{-{normal,rs}-processing,_topologies_{rs,full}}.png: new
  files, png exports by dia of the source dia diagrammes above.
* fig{-{normal,rs}-processing,_topologies_{rs,full}}.eps: removed,
  replaced by above dia source.
* routeserver.texi: remove extension in image macros.
* quagga.info: updated build
* Makefile.am: Add rules to build eps (using 'convert'), png (using
  dia). Add figures_BUILT_SOURCES to extra_dist to avoid the
  dependency on dia :) (amongst other things) for dist users.

19 years ago * rt_netlink.c (netlink_talk_filter): Show always warning message,
hasso [Thu, 31 Mar 2005 20:13:49 +0000 (20:13 +0000)]
* rt_netlink.c (netlink_talk_filter): Show always warning message,
  it's not for debug.
* rt_netlink.c (netlink_talk): Don't assume we use netlink_cmd
  although we do now actually.
* rt_netlink.c (netlink_route, netlink_route_multipath): Always use
  netlink_cmd to send messages to the kernel.

[backport candidate]

19 years ago2005-03-31 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 31 Mar 2005 15:18:21 +0000 (15:18 +0000)]
2005-03-31 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_dump.c: (show_debugging_ospf) Show if ospf event debugging
  is turned on.

  [backport candidate]

19 years ago2005-03-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 30 Mar 2005 16:33:13 +0000 (16:33 +0000)]
2005-03-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* irdp.h: Add prototype for irdp_sock_init, and fix protos for
  other irdp_* functions.
* irdp_interface.c: (irdp_if_start) If irdp_sock is negative,
  call irdp_sock_init to create the IRDP socket.
  (irdp_if_init) Rename to irdp_init().
  (get_iflist_ifp) Remove function that is a duplicate of
  if_lookup_by_index.
  (*) Make many functions static.  And remove superfluous "\n" from
  several zlog messages.
* irdp_main.c: (irdp_init) Remove function that used to call
  irdp_if_init() and irdp_sock_init(), since we will now create
  the socket only upon first use.
  (irdp_sock_init) Do not update global irdp_sock variable, just
  return the fd and assume that the caller will do so.  If setsockopt
  calls fail, close the socket before returning -1.
  (*) Make many functions static.
* irdp_packet.c: Initialize irdp_sock to -1.
  (irdp_read_raw) Call standard library function if_lookup_by_index
  instead of get_iflist_ifp.
  (irdp_recvmsg) Should be static, not global.

19 years ago2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 29 Mar 2005 17:03:49 +0000 (17:03 +0000)]
2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* rt_netlink.c: (netlink_link_change) If the status of an
  operative interface changes (e.g. MTU changes), the client
  daemons should be notified by calling zebra_interface_up_update.
  Previously, the information was being updated in zebra's
  interface structure, but the clients were not notified of
  changes to an operative interface.
* ospf_zebra.c: (ospf_interface_state_up) If the MTU of an operative
  interface changes, print a debug message and call ospf_if_reset()
  to simulate down/up on the interface.
* ospf_interface.h: Declare new function ospf_if_reset().
* ospf_interface.c: (ospf_if_reset) New function to call ospf_if_down
  and ospf_if_up for all ospf interfaces attached to an interface.

19 years ago2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 29 Mar 2005 16:13:49 +0000 (16:13 +0000)]
2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_packet.c: (ospf_write_frags) Enhance error message to
  show MTU.  Also make function static.
  (ospf_write) Enhance error message to show interface name and MTU.
  Also make function static.

19 years ago2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 29 Mar 2005 16:08:16 +0000 (16:08 +0000)]
2005-03-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_vty.c (show_ip_ospf_interface_sub): Display interface MTU and
bandwidth; this is useful for debugging problems.  Also, the function
should be static.

19 years ago * extract.pl.in: Use SNMP_INCLUDES to avoid warnings if compiling with
hasso [Mon, 28 Mar 2005 15:38:16 +0000 (15:38 +0000)]
* extract.pl.in: Use SNMP_INCLUDES to avoid warnings if compiling with
  snmp support.

19 years ago * configure.ac, */Makefile.am: Fix previous commit. SNMP includes
hasso [Mon, 28 Mar 2005 15:29:07 +0000 (15:29 +0000)]
* configure.ac, */Makefile.am: Fix previous commit. SNMP includes
  must be after lib/ includes in some systems. Introduce SNMP_INCLUDES
  for that.

19 years ago * configure.ac: Fix most of "Presents But Cannot Compiled" warnings
hasso [Sun, 27 Mar 2005 21:00:35 +0000 (21:00 +0000)]
* configure.ac: Fix most of "Presents But Cannot Compiled" warnings
  about various headers. CFLAGS is not correct place to specify
  includes, INCLUDES is for that.

19 years ago * ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't
hasso [Sun, 27 Mar 2005 13:32:25 +0000 (13:32 +0000)]
* ospf_snmp.c: Don't crash in snmp query if ospf instance doesn't
  exist at all.

[backport candidate]

19 years ago * configure.ac: Add Intel compiler (icc) support. Although Intel
hasso [Sun, 27 Mar 2005 13:07:23 +0000 (13:07 +0000)]
* configure.ac: Add Intel compiler (icc) support. Although Intel
  tries really hard to make icc look like gcc, there are some
  differences. It's very verbose with -Wall and it doesn't support
  the individual -W options. We are going to ignore some of these
  warnings.

19 years agoTrying to finish previous commit ...
hasso [Sat, 26 Mar 2005 14:13:40 +0000 (14:13 +0000)]
Trying to finish previous commit ...

19 years ago * doc/defines.texi.in, lib/version.h.in: Update copyright string to
hasso [Sat, 26 Mar 2005 14:07:31 +0000 (14:07 +0000)]
* doc/defines.texi.in, lib/version.h.in: Update copyright string to
  include year 2005.

19 years ago * ospfd.h: Include log.h, fixes compile with gcc-4.0.
hasso [Fri, 25 Mar 2005 19:48:40 +0000 (19:48 +0000)]
* ospfd.h: Include log.h, fixes compile with gcc-4.0.

[backport candidate]

19 years ago2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
vincent [Fri, 25 Mar 2005 13:08:53 +0000 (13:08 +0000)]
2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
* interface.c, interface.h, rtadv.c, rtadv.h: extensions to Neighbor
  discovery for Mobile IPv6.

19 years ago2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
vincent [Fri, 25 Mar 2005 13:05:47 +0000 (13:05 +0000)]
2005-03-25 Jean-Mickael Guerin <jean-mickael.guerin@6wind.com>
* Extensions to Neighbor Discovery for Mobile IPv6

19 years ago * bgp_route.c: Don't crash while clearing route tables if there is
hasso [Mon, 21 Mar 2005 10:28:14 +0000 (10:28 +0000)]
    * bgp_route.c: Don't crash while clearing route tables if there is
          no particular afi/safi configured.

[backport candidate]

19 years ago2005-03-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 16 Mar 2005 16:13:06 +0000 (16:13 +0000)]
2005-03-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* zebra.h: Must check whether __attribute__ should be defined before
  including zassert.h.

[backport candidate]

19 years ago2005-03-14 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 14 Mar 2005 20:19:01 +0000 (20:19 +0000)]
2005-03-14 Paul Jakma <paul.jakma@sun.com>

* (global) update all c files to match the lib/vector.h rename of
  (struct vector).active to max, and vector_max macro to
  vector_active.
* lib/vector.h: Rename to (struct vector).max to slightly less
  confusing active, for the number of active slots, distinct from
  allocated or active-and-not-empty. Rename vector_max to
  vector_active for same reason.

19 years ago2005-03-14 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 14 Mar 2005 17:41:45 +0000 (17:41 +0000)]
2005-03-14 Paul Jakma <paul.jakma@sun.com>

* command.c: (various) Fix indentation and other whitespace.

19 years ago2005-03-14 Paul Jakma <paul.jakma@sun.com>
paul [Mon, 14 Mar 2005 17:35:52 +0000 (17:35 +0000)]
2005-03-14 Paul Jakma <paul.jakma@sun.com>

* command.c: (sort_node) use vector_max instead of referencing
  (struct vector *)->max directly. Test that vector_max is > 0
  before using it to calculate an index.
  Fixup vector loop to make main body conditional on vector slot
  not being empty.
  (cmd_cmdsize) Fixup vector loop to make main body conditional on
  vector slot not being empty.
  (cmd_filter_by_completion) ditto
  (cmd_filter_by_string) ditto
  (is_cmd_ambiguous) ditto
  (cmd_describe_command_real) Change index integers to unsigned.
  Test that vector_max is > 0 before using it to calculate an index.
  Return immediately with CMD_ERR_NO_MATCH if vline has no
  active slots.
  Fixup vector loop to make main body conditional on vector slot
  not being empty.
  (cmd_complete_command_real) ditto.
  (cmd_execute_command_strict) Fixup vector loop to be conditional
  on non-null slot.

19 years ago2005-03-13 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sun, 13 Mar 2005 19:27:22 +0000 (19:27 +0000)]
2005-03-13 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_lsa.c: (ospf_lsa_refresh_walker) If the system clock jumps
  backward, then current time may be less than
  ospf->lsa_refresher_started.  This was causing invalid values
  for ospf->lsa_refresh_queue.index resulting in infinite loops.
  Problem fixed by casting the expression to unsigned before taking
  the modulus.

[backport candidate]