]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
17 years ago[ospfd] cleanup NSM neighbour delete through a new Deleted NSM state
Paul Jakma [Mon, 10 Jul 2006 07:45:13 +0000 (07:45 +0000)]
[ospfd] cleanup NSM neighbour delete through a new Deleted NSM state

2006-07-07 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.h: Add a NSM_Deleted neighbour state, to act as dummy
  state indicating the neighbour is to be deleted.
* ospf_nsm.c: (general) Use the NSM_Deleted state to delete
  neighbours, thus allowing code to be slightly more obvious
  in its flow.
  (nsm_timer_set) Add NSM_Deleted. Add another timer the code
  missed.
  (nsm_kill_nbr) No need for special case call to nsm_change_state
  anymore.
  Make the assert and error-handling for same case more readable
  (Andrew Schorr)
  Remove the call to ospf_nbr_delete, nsm_change_state can do
  this generally now via NSM_Deleted.
  (struct ... NSM) Add the dummy NSM_Deleted state, the 3 events
  that can lead to nsm_kill_nbr all now transition the NBR to
  NSM_Deleted and the general change_state function can be left
  to do the work.
  (ospf_nsm_event) Special casing of events and early-return can
  be removed now.
  On transition into Deleted, delete the nbr.
* ospf_dump.c: (ospf_nsm_state_msg) Add Deleted.

17 years ago[ospfd] early-return in nsm_event missed LLDown event, fixes use after free
Paul Jakma [Thu, 6 Jul 2006 11:12:39 +0000 (11:12 +0000)]
[ospfd] early-return in nsm_event missed LLDown event, fixes use after free

2006-07-06 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.c: (ospf_nsm_event) LLDown event also results in nbr
  being deleted, requires early-return too. Likely explains
  some crash reports after interface events.

17 years ago[doc] remove the auto-generated quagga.info file from CVS
Paul Jakma [Tue, 4 Jul 2006 14:41:08 +0000 (14:41 +0000)]
[doc] remove the auto-generated quagga.info file from CVS

2006-07-04 Paul Jakma <paul.jakma@sun.com>

* quagga.info: remove auto-generated file. It will still be
  present in dist tarballs, so shouldn't affect anyone but
  direct users of CVS. Required texinfo version should be
  widely available.
* .cvsignore: ignore quagga.info

17 years ago[ospfd] Apply some simplifications to ospf_nsm, from Andrew's suggestions
Paul Jakma [Tue, 4 Jul 2006 13:57:49 +0000 (13:57 +0000)]
[ospfd] Apply some simplifications to ospf_nsm, from Andrew's suggestions

2006-07-04 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.c: (general) Various small cleanups from Andrew's
  review of last set of patches.
  (nsm_timer_set) Loading, Full and default can share
  same code too.
  (nsm_should_adj) Can just be one big OR.
  (nsm_twoway_received) Collapse into return statement.

17 years ago[ospfd] CID #13, dont try print out fields of LSA we know to be NULL.
Paul Jakma [Tue, 4 Jul 2006 13:52:29 +0000 (13:52 +0000)]
[ospfd] CID #13, dont try print out fields of LSA we know to be NULL.

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* ospf_lsa.c: (ospf_translated_nssa_refresh) CID #13.

17 years ago[ospfd] Clear adjacency state for NSM changes down to TwoWay/ExStart
Paul Jakma [Tue, 4 Jul 2006 13:50:44 +0000 (13:50 +0000)]
[ospfd] Clear adjacency state for NSM changes down to TwoWay/ExStart

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.c: (nsm_clear_adj) clear adjacency related state for a
  neighbour, needed for some state changes from > ExStart down
  to ExStart or less, which need not go through nsm_reset_nbr.
  (nsm_reset_nbr) move code to former. Should be static.
  (ospf_nsm_event) Remove long dead code.
  Use nsm_clear_adj for state changes that take down
  adjacencies to TwoWay/ExStart.
  (nsm_kill_nbr) Oops, action function shouldn't try return
  1 for error.

17 years ago[ospfd] trivial cleanup of nsm_timer_set
Paul Jakma [Tue, 4 Jul 2006 13:46:14 +0000 (13:46 +0000)]
[ospfd] trivial cleanup of nsm_timer_set

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.c: (nsm_timer_set) ls_req timer should be OFF in
  early states.
  Compact several identical sections.
  Set inactivity timer to OFF for Down, for documentary purposes.

17 years ago[ospfd] Ensure NSM state functions can redirect next_state accidently
Paul Jakma [Tue, 4 Jul 2006 13:44:19 +0000 (13:44 +0000)]
[ospfd] Ensure NSM state functions can redirect next_state accidently

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.c: (ospf_nsm_event) Don't allow action functions to
  change next_state if the NSM tables do not indicate
  next_state is conditional, log warning if one tries -
  existing code appears fine though.

17 years ago[ospfd] consolidate adjacency check logic
Paul Jakma [Tue, 4 Jul 2006 13:35:24 +0000 (13:35 +0000)]
[ospfd] consolidate adjacency check logic

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* ospf_nsm.c: (nsm_should_adj) New function, just consolidate the
  10.4 adjacency check from nsm_twoway_received/nsm_adj_ok.
  (nsm_twoway_received/nsm_adj_ok) Use former.

17 years ago[debug] Debug messages to terminal vty sessions should include timestamps
Andrew J. Schorr [Mon, 3 Jul 2006 20:58:29 +0000 (20:58 +0000)]
[debug] Debug messages to terminal vty sessions should include timestamps

2006-07-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* vty.c: (vty_log_out) Debug messages to terminal vty sessions
  should include timestamps.

17 years ago[zebra] Fix CID #104, check addr for null, and #18, check nexthop type args
Paul Jakma [Sun, 2 Jul 2006 16:38:54 +0000 (16:38 +0000)]
[zebra] Fix CID #104, check addr for null, and #18, check nexthop type args

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* rt_netlink.c: (netlink_interface_addr) Fix CID #104, can not
  proceed if addr is NULL.
* zebra_rib.c: (static_add_ipv6) Fix CID #18, double check
  required arguments are supplied for the given nexthop type.

17 years ago[bgpd] Fix crash on shutdown of peer
Paul Jakma [Sun, 2 Jul 2006 11:01:50 +0000 (11:01 +0000)]
[bgpd] Fix crash on shutdown of peer

2006-07-02 Paul Jakma <paul.jakma@sun.com>

* bgp_fsm.c: (bgp_{stop,start}) Move clear/free of certain
  bits of state from stop to start, as they may be used via
  peer references on clearing queues..

17 years ago[ripd] update to use auto-generated redistribute route-type defs
Paul Jakma [Fri, 30 Jun 2006 16:58:53 +0000 (16:58 +0000)]
[ripd] update to use auto-generated redistribute route-type defs

2006-06-29 Paul Jakma <paul.jakma@sun.com>

* rip_zebra: (general) convert redistribute commands to use
  the auto-generated defines.

17 years ago[lib] Fix merge error in ChangeLog
Paul Jakma [Fri, 30 Jun 2006 16:55:41 +0000 (16:55 +0000)]
[lib] Fix merge error in ChangeLog

- entry was left in wrong order, according to date.

17 years ago[ospfd] Fix "show ip ospf neighbor A.B.C.D" to show all matches
Andrew J. Schorr [Fri, 30 Jun 2006 16:53:47 +0000 (16:53 +0000)]
[ospfd] Fix "show ip ospf neighbor A.B.C.D" to show all matches

2006-06-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_vty.c: (show_ip_ospf_neighbor_id) Should show all instances
  of that neighbor (since it may appear on multiple interfaces)
  instead of bailing out after showing the first match.

17 years ago[lib] Fix typo in cpp conditional for malloc.h include
Paul Jakma [Fri, 30 Jun 2006 16:49:02 +0000 (16:49 +0000)]
[lib] Fix typo in cpp conditional for malloc.h include

2006-06-28 Paul Jakma <paul.jakma@sun.com>

* memory.c: Fix typo in cpp conditional around malloc.h, from
  comment in bug #269.

17 years ago[ospfd] Avoid getting NSM stuck in ExStart by using local view of DR/BDR
Andrew J. Schorr [Fri, 30 Jun 2006 03:21:05 +0000 (03:21 +0000)]
[ospfd] Avoid getting NSM stuck in ExStart by using local view of DR/BDR

2006-06-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_nsm.c: (nsm_twoway_received) When deciding whether to
  change from state Init to ExStart, the test for whether the
  neighboring router is DR or BDR should be against the
  local router's notion of DR/BDR, not the neighbor's view.

17 years ago[ospfd] Implement new ospf router subcommand "log-adjacency-changes [detail]"
Andrew J. Schorr [Thu, 29 Jun 2006 20:20:52 +0000 (20:20 +0000)]
[ospfd] Implement new ospf router subcommand "log-adjacency-changes [detail]"

2006-06-28 Erik Muller <erikm@internap.com>

* ospfd.h: Define 2 new struct ospf config flags:
  OSPF_LOG_ADJACENCY_CHANGES and OSPF_LOG_ADJACENCY_DETAIL
* ospf_nsm.c (nsm_change_state): Log adjacency changes if
  requested.
* ospf_vty.c (ospf_log_adjacency_changes): New command function
  to implement ospf subcommand "log-adjacency-changes [detail]".
  (no_ospf_log_adjacency_changes) Turn off log-adjacency-changes.
  (show_ip_ospf) Show whether adjacency changes are logged.
  (ospf_config_write) Add "log-adjacency-changes [detail]" to config.
  (ospf_vty_init) Add ospf_log_adjacency_changes and
  no_ospf_log_adjacency_changes.
* ospfd.texi: Document new ospf router subcommand
  "log-adjacency-changes [detail]".

17 years ago[lib] Remove bare routes in route_types: fix mistake in commmit
Paul Jakma [Tue, 27 Jun 2006 10:42:18 +0000 (10:42 +0000)]
[lib] Remove bare routes in route_types: fix mistake in commmit

2006-06-27 Paul Jakma <paul.jakma@sun.com>

* route_types.awk: Fix previous commit. Forgot to remove the
  printf of the bare/numeric route-type help string (empty string)

17 years ago[lib] Remove numeric route-type argument in redistribute arg strings
Paul Jakma [Tue, 27 Jun 2006 08:26:07 +0000 (08:26 +0000)]
[lib] Remove numeric route-type argument in redistribute arg strings

2006-06-27 Paul Jakma <paul.jakma@sun.com>

* route_types.awk: Remove setting the 'bare' numeric route type
  in redist strings.

17 years ago[ospfd] Replace redistribution strings with new route_types.h defines.
Paul Jakma [Tue, 27 Jun 2006 08:01:43 +0000 (08:01 +0000)]
[ospfd] Replace redistribution strings with new route_types.h defines.

2006-05-23 Paul Jakma <paul.jakma@sun.com>

* ospf_vty.c: (general) Replace in-place route redistribution
  command and help strings with the new auto-generated defines
  from lib/route_types.h

17 years ago[lib] Centralise Zserv route type information, auto-generate redist strings
Paul Jakma [Tue, 27 Jun 2006 07:52:03 +0000 (07:52 +0000)]
[lib] Centralise Zserv route type information, auto-generate redist strings

2006-05-23 Paul Jakma <paul.jakma@sun.com>

* route_types.txt: New file, table of ZEBRA_ROUTE definitions.
* route_types.awk: New script, to parse previous and generate
  (for now) redistribute string defines.
* Makefile.am: build route_types.h using previous two, ala
  memtypes.h, include the script and table file in EXTRA_DIST.
* command.h: pull in route_types.h, add a REDIST_STR define.

17 years ago[doc] OSPF MD5 keyid documentation, fix texinfo warnings in bgpd.texi
Paul Jakma [Mon, 26 Jun 2006 12:55:58 +0000 (12:55 +0000)]
[doc] OSPF MD5 keyid documentation, fix texinfo warnings in bgpd.texi

2006-06-26 Paul Jakma <paul.jakma@sun.com>

* ospfd.texi: Document that MD5 keyid is part of the protocol.
* bgpd.texi: shut texinfo warnings up by replacing brackets in
  variable with angle brackets.

17 years ago[ospfd] NSSA translate-enabled ABR should declare itself as ASBR
Paul Jakma [Mon, 26 Jun 2006 12:50:06 +0000 (12:50 +0000)]
[ospfd] NSSA translate-enabled ABR should declare itself as ASBR

2006-06-26 Paul Jakma <paul.jakma@sun.com>

* ospf_abr.c: (general) NSSA translate-candidate ABRs need to
  be ASBRs, or other routers may rightfully refuse to install
  translated type-5s LSAs. reported by dendroot@gmail.com.
  (ospf_abr_nssa_check_status) Detect change in translator
  state when ABR, and inc/dec redistribute count as when we
  leave/enter the disabled state - so that translate-enabled
  ABR properly sets ASBR bit on non-NSSA areas.
  Run the resulting function through indent to clean it up.
* ospf_lsa.c: (router_lsa_flags) For purposes of ASBR bit,
  NSSA area is same as stub area.

18 years ago[ospfd] Improve two info log messages in ospf_snmp.c
Andrew J. Schorr [Sat, 24 Jun 2006 20:05:02 +0000 (20:05 +0000)]
[ospfd] Improve two info log messages in ospf_snmp.c

2006-06-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_snmp.c: (ospfTrapNbrStateChange, ospfTrapIfStateChange) Improve
  info log message to indicate why the trap is being sent.

18 years ago[ospfd] When writing out config, show "debug ospf nsm status" properly
Andrew J. Schorr [Sat, 24 Jun 2006 19:40:13 +0000 (19:40 +0000)]
[ospfd] When writing out config, show "debug ospf nsm status" properly

2006-06-24 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_dump.c: (config_write_debug) Fix typo to show debug ospf nsm
  status properly (not ism status).

18 years ago[ospfd] Fix ospf passive-interface subcommand to create interface if necessary
Andrew J. Schorr [Sun, 18 Jun 2006 00:45:48 +0000 (00:45 +0000)]
[ospfd] Fix ospf passive-interface subcommand to create interface if necessary

2006-06-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_vty.c: ({no_,}ospf_passive_interface) Replace if_lookup_by_name
  with a call to if_get_by_name -- if the interface does not exist
  already, it should be created.  And remove the obsolete warning
  message.

18 years ago[redhat quagga.spec] Detect fedora release automatically
Andrew J. Schorr [Thu, 15 Jun 2006 22:31:39 +0000 (22:31 +0000)]
[redhat quagga.spec] Detect fedora release automatically

2006-06-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* redhat/quagga.spec.in: Get default distro automatically
  by using rpm to query the fedora-release version.
  And fix a typo (should be default_dist, not dist_default).

18 years ago[ospfd] Fix multicast membership drop bug
Paul Jakma [Thu, 15 Jun 2006 18:40:49 +0000 (18:40 +0000)]
[ospfd] Fix multicast membership drop bug

2006-06-15 Paul Jakma <paul.jakma@sun.com>

* Reported by Milan Koci
* ospf_interface.h: (struct ospf_if_info) Add reference counts
  for multicast group memberships. Add various macros to help
  manipulate/check membership state.
* ospf_interface.c: (ospf_if_set_multicast) Maintain the
  ospf_if_info reference counts, and only actually drop
  memberships if it hits 0, to avoid losing membership when
  OSPF is disabled on an interface with multiple active OSPF
  interfaces.
* ospf_packet.c: (ospf_{hello,read}) Use the new macros to
  check/set
  multicast membership.
* ospf_vty.c: (show_ip_ospf_interface_sub) ditto.

18 years ago[zebra] Fix forgetfulness wrt configured address on FreeBSD
Paul Jakma [Thu, 15 Jun 2006 18:10:47 +0000 (18:10 +0000)]
[zebra] Fix forgetfulness wrt configured address on FreeBSD

2006-06-15 Paul Jakma <paul.jakma@sun.com>

* (general) The key fixes are actually Andrew Schorr's.
* interface.c: (ip_address_uninstall) Unset the configured flag.
* connected.c: (connected_same) new helper, check whether
  two connected are same.
  (connected_implicit_withdraw) new helper, consolidation of
  existing code in connected_add_ipv{4,6}.
  Try filter out unneeded Zserv address delete/adds when
  address is exact same.
  Where old address is implicitely removed, be sure to preserve
  the IFC_CONFIGURED flag if set, fixes bug where configured
  addresses were being lost on FreeBSD.

18 years ago[zebra] remove internal if_flag_dump, use libzebras version.
Paul Jakma [Thu, 15 Jun 2006 12:48:17 +0000 (12:48 +0000)]
[zebra] remove internal if_flag_dump, use libzebras version.

2006-06-15 Paul Jakma <paul.jakma@sun.com>

* lib/if.c: (if_flag_dump) remove the whitespace indentation, callers
  should provide.
* zebra/interface.c: (if_flag_dump_vty) redundant code, remove.
  (if_dump_vty) use libzebra if_flag_dump.

18 years ago[lib] list_delete shouldn't duplicate list_delete_all_node
Paul Jakma [Thu, 15 Jun 2006 12:43:09 +0000 (12:43 +0000)]
[lib] list_delete shouldn't duplicate list_delete_all_node

2006-06-15 Paul Jakma <paul.jakma@sun.com>

* linklist.c: (list_delete) call list_delete_all_node, don't
  duplicate it.

18 years ago[lib] Experimental: have XFREE NULL out the freed pointer
Paul Jakma [Thu, 15 Jun 2006 12:41:02 +0000 (12:41 +0000)]
[lib] Experimental: have XFREE NULL out the freed pointer

2006-06-15 Paul Jakma <paul.jakma@sun.com>

* memory.h: Experimental, have XFREE macro NULL out the freed
  pointer.

18 years ago[lib] Fix vector leak in error path in command.c, CID #38
Paul Jakma [Thu, 15 Jun 2006 12:25:55 +0000 (12:25 +0000)]
[lib] Fix vector leak in error path in command.c, CID #38

2006-06-15 Paul Jakma <paul.jakma@sun.com>

* command.c: (cmd_describe_command_real) Fix leak, CID #38.

18 years ago[ospfd] lsdb_delete/discard_from_db should be more robust to bad args
Paul Jakma [Thu, 15 Jun 2006 12:04:57 +0000 (12:04 +0000)]
[ospfd] lsdb_delete/discard_from_db should be more robust to bad args

2006-05-31 Paul Jakma <paul.jakma@sun.com>

* ospf_lsdb.c: (ospf_lsdb_delete) robustify against NULL arguments,
  print warning.
* ospf_lsa.c: (ospf_discard_from_db) ditto.
  (ospf_maxage_lsa_remover) Check lsa->lsdb for validity, possible
  mitigation (but not solution) for bug #269.

18 years ago[ospfd] suppres mostly uninteresting debug message unless debug is set
Paul Jakma [Thu, 15 Jun 2006 11:41:19 +0000 (11:41 +0000)]
[ospfd] suppres mostly uninteresting debug message unless debug is set

2006-05-30 Paul Jakma <paul.jakma@sun.com>

* ospf_packet.c: (ospf_read) Debug message about packets
  received on unenabled interfaces should be conditional on
  debug being set.

18 years ago[tests] Fix stray character in previous commit
Paul Jakma [Sun, 28 May 2006 08:32:44 +0000 (08:32 +0000)]
[tests] Fix stray character in previous commit

18 years ago[tests] test-sig.c: configure logging
Paul Jakma [Sun, 28 May 2006 08:31:17 +0000 (08:31 +0000)]
[tests] test-sig.c: configure logging

2006-05-28 Paul Jakma <paul.jakma@sun.com>

* test-sig.c: (main) configure logging, there's no terminal
  to write to for one thing, but we do want stdout, and we
  don't want a test to spam syslog.

18 years ago[lib] Add support for Sun libc printstack to zlog_backtrace_sigsafe
Paul Jakma [Sun, 28 May 2006 08:26:15 +0000 (08:26 +0000)]
[lib] Add support for Sun libc printstack to zlog_backtrace_sigsafe

2006-05-28 Paul Jakma <paul.jakma@sun.com>

* configure.ac:
  Check for Sun libc printstack(), add a general HAVE_STACK_TRACE
  define for lib/log.c, if any supported stack symbol dumping
  function is found (glibc backtrace/sun libc printstack).
* log.c: (general) Add support for Sun libc printstack().
  (hex_append) make the cpp conditional on general HAVE_STACK_TRACE
  define.
  (zlog_backtrace_sigsafe) Ditto. Add printstack() version of the
  the DUMP macro in this function.

18 years ago[lib] vty_log shouldn't crash if called when vty isn't initiliased
Paul Jakma [Sun, 28 May 2006 08:18:38 +0000 (08:18 +0000)]
[lib] vty_log shouldn't crash if called when vty isn't initiliased

2006-05-28 Paul Jakma <paul.jakma@sun.com>

* vty.c: (vty_log/vty_log_fixed) dont crash if called when vty
  hasn't been initiliased.

18 years ago[lib] malloc.h is deprecated, try not to include it anymore
Paul Jakma [Sun, 28 May 2006 08:15:46 +0000 (08:15 +0000)]
[lib] malloc.h is deprecated, try not to include it anymore

2006-05-28 Paul Jakma <paul.jakma@sun.com>

* memory.c: malloc.h is deprecated in favour of stdlib.h, however
  we still need it on GNU Libc for mallinfo().

18 years ago[lib] include inttypes.h rather than stdint.h, provide defines where missing
Paul Jakma [Sun, 28 May 2006 08:08:24 +0000 (08:08 +0000)]
[lib] include inttypes.h rather than stdint.h, provide defines where missing

2006-05-28 Paul Jakma <paul.jakma@sun.com>

* zebra.h: Include inttypes.h rather than stdint.h, best practice
  according to the autoconf manual.
  Add UINT*_MAX defines for older platforms lacking these (FBSD 4)

18 years ago[build] Update SOS CFLAGS and add check for GNU Make in configure.ac
Paul Jakma [Sun, 28 May 2006 08:02:41 +0000 (08:02 +0000)]
[build] Update SOS CFLAGS and add check for GNU Make in configure.ac

2006-05-28 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Update SOS CFLAGS, Xt shouldn't be used and
  enable debug options.
  Add a check for GNU Make and warn the user if it does not appear
  to be the make used.

18 years ago[vtysh] Add "show memory" to vtysh
Paul Jakma [Sun, 28 May 2006 07:54:45 +0000 (07:54 +0000)]
[vtysh] Add "show memory" to vtysh

2006-05-24 Paul Jakma <paul.jakma@sun.com>

* vtysh.c: (general) Add 'show memory' command.

18 years ago[bgpd] expand vty help for neighbor ... update-source
Paul Jakma [Tue, 23 May 2006 22:27:55 +0000 (22:27 +0000)]
[bgpd] expand vty help for neighbor ... update-source

2006-05-23 Paul Jakma <paul.jakma@sun.com>

* bgp_vty.c: (neighbor_update_source_cmd) Expand tab completion
  to make it clear it takes both address and ifname.

18 years ago[doc] document neighbor ..... update-source
Paul Jakma [Tue, 23 May 2006 22:20:34 +0000 (22:20 +0000)]
[doc] document neighbor ..... update-source

2006-05-23 Paul Jakma <paul.jakma@sun.com>

* bgpd.texi: Document the update-source command.

18 years ago[vtysh] suppress output in 'show logging' for daemons not present
Paul Jakma [Tue, 23 May 2006 22:10:55 +0000 (22:10 +0000)]
[vtysh] suppress output in 'show logging' for daemons not present

2006-05-21 Paul Jakma <paul.jakma@sun.com>

* vtysh.c: (vtysh_show_logging_cmd) Suppress output for daemons
  which are not running (Andrew Schorr).

18 years ago[vtysh] Add 'show logging' command
Paul Jakma [Tue, 23 May 2006 22:10:01 +0000 (22:10 +0000)]
[vtysh] Add 'show logging' command

2006-05-17 Paul Jakma <paul.jakma@sun.com>

* vtysh.c: (general) Add 'show logging' command.

18 years ago[interface configuration] Try to avoid losing address info after shutdown.
Andrew J. Schorr [Sun, 21 May 2006 04:04:49 +0000 (04:04 +0000)]
[interface configuration] Try to avoid losing address info after shutdown.
2006-05-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* if.h: (struct connected) Document the meaning of the
  ZEBRA_IFC_REAL and ZEBRA_IFC_CONFIGURED flags.
* connected.c: (connected_withdraw) Do not delete the connected
  address if the ZEBRA_IFC_CONFIGURED flag is set.
  (connected_add_ipv4,connected_add_ipv6) Before calling
  connected_withdraw, unset the ZEBRA_IFC_CONFIGURED flag
  on the superseded connected structure.

18 years ago[interface configuration] Preserve flag indicating address was set by quagga.
Andrew J. Schorr [Fri, 19 May 2006 13:53:23 +0000 (13:53 +0000)]
[interface configuration] Preserve flag indicating address was set by quagga.
2006-05-19 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* connected.c: (connected_add_ipv4,connected_add_ipv6) If the
  new struct connected matches an already existing one
  (that will consequently be removed by connected_withdraw),
  then be sure to preserve the ZEBRA_IFC_CONFIGURED flag.

18 years ago[debug] Improve zebra kernel socket debug message to include IP addresses.
Andrew J. Schorr [Wed, 17 May 2006 15:04:59 +0000 (15:04 +0000)]
[debug] Improve zebra kernel socket debug message to include IP addresses.
2006-05-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* kernel_socket.c: (ifam_read_mesg) Improve debug message
  to show the IP address.

18 years ago[zebra] Remove private command string table
Paul Jakma [Mon, 15 May 2006 17:00:37 +0000 (17:00 +0000)]
[zebra] Remove private command string table

2006-05-15 Paul Jakma <paul.jakma@sun.com>

* zserv.c: (general) Remove the private zebra_command_str
  in favour of newly added libzebra zserv_command_string.

18 years ago[lib] Add string mapping table for Zserv commands
Paul Jakma [Mon, 15 May 2006 16:56:51 +0000 (16:56 +0000)]
[lib] Add string mapping table for Zserv commands

2006-05-15 Paul Jakma <paul.jakma@sun.com>

* log.c: (general) Generalise struct zebra_route_desc into
  struct zebra_desc_table and, similar to route_types, add a
  command_types table to describe Zserv protocol commands.
  (route_types[]) use a macro to use designated initialisers
  while avoiding tedious duplication.
  (zserv_command_string) lookup string from zebra_desc_table,
  similar to zebra_route_string
* zebra.h: Add declaration for zserv_command_string, adjust the
  comments to reflect zebra_desc_table.

18 years ago[lib] CID #39, Fix the vty completion leak-fix to only free when desired
Paul Jakma [Mon, 15 May 2006 10:56:46 +0000 (10:56 +0000)]
[lib] CID #39, Fix the vty completion leak-fix to only free when desired

2006-05-13 Paul Jakma <paul.jakma@sun.com>

* vty.c: (vty_describe_command) CID #39 fix was too hasty, just
  cause it /can/ leak doesn't mean it always will have, check
  first.

18 years ago[ospf6d] GNU Zebra 3563: Fix as-external forwarding address
Paul Jakma [Mon, 15 May 2006 10:47:53 +0000 (10:47 +0000)]
[ospf6d] GNU Zebra 3563: Fix as-external forwarding address

2006-03-01  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>

* ospf6_asbr.c: fix bug of needless forwarding address
* ospf6d.h: version 0.9.7r

18 years ago[ospf6d] GNU Zebra #3562: ABR Crash fix, memory fixes, route table debugs
Paul Jakma [Mon, 15 May 2006 10:46:07 +0000 (10:46 +0000)]
[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

18 years ago[ospf6d] GNU Zebra 3560: Call ospf6_maxage_remove when out of Exchange/Loading
Paul Jakma [Mon, 15 May 2006 10:42:24 +0000 (10:42 +0000)]
[ospf6d] GNU Zebra 3560: Call ospf6_maxage_remove when out of Exchange/Loading

2005-10-20  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>

* ospf6_neighbor.c: add the calling of ospf6_maxage_remove ()
when the neighbor went out of Exchange/Loading.

18 years ago[ospf6d] Import GNU Zebra CVSps#3559: Fix inter-area as-ext bug, cleanup debug
Paul Jakma [Mon, 15 May 2006 10:39:30 +0000 (10:39 +0000)]
[ospf6d] Import GNU Zebra CVSps#3559: Fix inter-area as-ext bug, cleanup debug

2005-10-06  Yasuhiro Ohara  <yasu@sfc.wide.ad.jp>

* ospf6_asbr.c: fix bug of calculating AS-External routes
  in other areas. Add debugging function for border-router
  calculation.
* ospf6d.h: version 0.9.7p

18 years ago[bgpd] CID #4,#5,#9,#10, simplify aspath_print_vty usage
Paul Jakma [Fri, 12 May 2006 23:48:40 +0000 (23:48 +0000)]
[bgpd] CID #4,#5,#9,#10, simplify aspath_print_vty usage

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* bgp_aspath.{c,h}: (aspath_print_vty) take a format string,
  so as to reduce burden on callers, all in bgp_route.c
* bgp_route.c: (route_vty_out{,tmp}) Update to match
  aspath_print_vty, simplifying checks needed to get spacing
  right. CID #4,#5.
  ({damp,flap}_route_vty_out) Ditto, CID #9, #10

18 years ago[bgpd] CID #6, remove useless NULL check, bgp_static_update_rsclient
Paul Jakma [Fri, 12 May 2006 23:29:22 +0000 (23:29 +0000)]
[bgpd] CID #6, remove useless NULL check, bgp_static_update_rsclient

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* bgp_route.c: (bgp_static_update_rsclient) Remove useless NULL
  check, code already assumes bgp_static can not be NULL,
  fixes CID #6.

18 years ago[bgpd] CID #7, remove useless NULL check, bgp_static_update_main
Paul Jakma [Fri, 12 May 2006 23:27:30 +0000 (23:27 +0000)]
[bgpd] CID #7, remove useless NULL check, bgp_static_update_main

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* bgp_route.c: (bgp_static_update_main) Remove useless NULL
  check, code already assumes bgp_static can not be NULL,
  fixes CID #7.

18 years ago[bgpd] Remove dead code in ORIGINATOR_ID packet forming code
Paul Jakma [Fri, 12 May 2006 23:25:37 +0000 (23:25 +0000)]
[bgpd] Remove dead code in ORIGINATOR_ID packet forming code

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* bgp_attr.c: (bgp_packet_attribute) Remove dead code, Coverity
  CID #1

18 years ago[lib] CID #55, fix return of freed pointer, cmd_describe_command_real
Paul Jakma [Fri, 12 May 2006 23:24:09 +0000 (23:24 +0000)]
[lib] CID #55, fix return of freed pointer, cmd_describe_command_real

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* command.c: (cmd_describe_command_real) Fix return of freed
  pointer when no-match, CID #55.

18 years ago[lib] CID #39, fix leak in error path, vty_describe_command
Paul Jakma [Fri, 12 May 2006 23:22:01 +0000 (23:22 +0000)]
[lib] CID #39, fix leak in error path, vty_describe_command

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* vty.c: (vty_describe_command) fix leak of describe vector in
  error path, CID #39.

18 years ago[lib] CID #37, fix error case leak, cmd_complete_command_real
Paul Jakma [Fri, 12 May 2006 23:19:37 +0000 (23:19 +0000)]
[lib] CID #37, fix error case leak, cmd_complete_command_real

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* command.c: (cmd_complete_command_real) Fix leak of cmd_vector
  in error case, Coverity CID #37.

18 years ago[lib] CID #3, fix forward-null errors in vty_prefix_list_uninstall
Paul Jakma [Fri, 12 May 2006 23:17:38 +0000 (23:17 +0000)]
[lib] CID #3, fix forward-null errors in vty_prefix_list_uninstall

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* plist.c: (vty_prefix_list_uninstall) Fix potential NULL deref
  of prefix and typestr strings, Coverity CID #3.

18 years ago[ospfd] Fix small error in CID #13 commit
Paul Jakma [Fri, 12 May 2006 23:15:30 +0000 (23:15 +0000)]
[ospfd] Fix small error in CID #13 commit

2006-05-13 Paul Jakma <paul.jakma@sun.com>

* ospf_lsa.c: (ospf_translated_nssa_refresh) fix the sanity
  check to match the assert, small error in CID #13 fix.

18 years ago[ospfd] CID #13, debug for NULL type7 LSA should not print out data from it
Paul Jakma [Fri, 12 May 2006 23:11:14 +0000 (23:11 +0000)]
[ospfd] CID #13, debug for NULL type7 LSA should not print out data from it

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_lsa.c: (ospf_translated_nssa_refresh) Add non-assert
  sanity check, in case DEBUG isn't defined.  Debug message
  when no type7 exists should print the ID from the type5, not
  the type7, fixes CID #13.

18 years ago[ospfd] CID #15, remove redundant NULL check in ism_change_state
Paul Jakma [Fri, 12 May 2006 23:07:27 +0000 (23:07 +0000)]
[ospfd] CID #15, remove redundant NULL check in ism_change_state

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_ism.c: (ism_change_state) NULL check on oi->area is
  useless, it's always valid. Only possibility where it
    couldn't be is if there is a race between abr_task and
  cleaning up oi's, in which case a NULL check here isn't going
  to do anything. Fixes CID #15.

18 years ago[ospfd] CID #14, NULL check ospf->backbone before use, ospf_update_router_route
Paul Jakma [Fri, 12 May 2006 23:04:45 +0000 (23:04 +0000)]
[ospfd] CID #14, NULL check ospf->backbone before use, ospf_update_router_route

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_ia.c: (ospf_update_router_route) ospf->backbone could be
  NULL when passed to ospf_find_asbr_route_through_area,
  check for NULL first, CID #14.

18 years ago[ospfd] CID #28, remove another ospf_lookup call - ospf_redistribute_withdraw
Paul Jakma [Fri, 12 May 2006 23:02:46 +0000 (23:02 +0000)]
[ospfd] CID #28, remove another ospf_lookup call - ospf_redistribute_withdraw

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_asbr.c: (ospf_redistribute_withdraw) remove ospf_lookup
  call by taking the struct ospf * as argument, which the
  caller has, fixing CID #28.
* ospf_asbr.h: (ospf_redistribute_withdraw) update declaration
* ospf_zebra.c: (ospf_redistribute_unset) update call to
  ospf_redistribute_withdraw to match.

18 years ago[ospfd] CID #27, fix missing NULL return check
Paul Jakma [Fri, 12 May 2006 23:00:06 +0000 (23:00 +0000)]
[ospfd] CID #27, fix missing NULL return check

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_interface.c: (ospf_if_exists) Fix missing NULL return
  check on ospf_lookup, CID #27.

18 years ago[ospfd] CID #29, fix missing NULL check by removing unused code.
Paul Jakma [Fri, 12 May 2006 22:57:57 +0000 (22:57 +0000)]
[ospfd] CID #29, fix missing NULL check by removing unused code.

2006-05-12 Paul Jakma <paul.jakma@sun.com>

* ospf_lsa.c: (ospf_lsa_action) Get rid of the ospf_lookup
  call, which is not checked for NULL return, by stripping out
  functionality which is never used, hence fixing Coverity CID
  #29.
  (struct lsa_action) remove unused member.

18 years ago[ospfd] Squash another ospf_lookup call
Paul Jakma [Fri, 12 May 2006 22:55:41 +0000 (22:55 +0000)]
[ospfd] Squash another ospf_lookup call

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* ospf_lsa.c: (ospf_default_originate_timer) Let the thread
  take (struct ospf *) as thread argument, rather than (struct
  ospf *)->default_originate, thus avoiding having to call
  ospf_lookup.
* ospf_zebra.c: (ospf_redistribute_default_set) change setup
  of ospf_default_originate_timer thread to match.
* ospfd.c: (ospf_router_id_update) ditto.

18 years ago[ospfd] Fix leak in area-range-cost command, CID #46.
Paul Jakma [Fri, 12 May 2006 22:51:49 +0000 (22:51 +0000)]
[ospfd] Fix leak in area-range-cost command, CID #46.

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* ospf_abr.c: (ospf_area_range_cost_set) Shouldn't create a new
  range, should just lookup to see if one exists, the new range
  is just leaked. Fixes CID #46.

18 years ago[ospfd] CID #49, fix dereference before NULL check
Paul Jakma [Fri, 12 May 2006 22:50:40 +0000 (22:50 +0000)]
[ospfd] CID #49, fix dereference before NULL check

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* ospf_route.c: (ospf_route_delete_same_ext) Fix deref before
  NULL check by moving into check-protected block, fix CID #49.

18 years ago[ospfd] Check NULL result from ospf_area_lookup_by_area_id, CID #69
Paul Jakma [Thu, 11 May 2006 13:34:08 +0000 (13:34 +0000)]
[ospfd] Check NULL result from ospf_area_lookup_by_area_id, CID #69

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* ospf_vty.c: (no_ospf_area_filter_list) Check NULL result from
  ospf_area_lookup_by_area_id, fixes Coverity CID #69

18 years ago[ospfd] Fix missing check for ospf_lookup NULL return, CID #70
Paul Jakma [Thu, 11 May 2006 13:31:11 +0000 (13:31 +0000)]
[ospfd] Fix missing check for ospf_lookup NULL return, CID #70

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* ospf_vty.c: (general) Audit ospf_lookup calls in commands,
  ensure check for NULL result, make vty messages consistent.
  (show_ip_ospf_interface) Missing NULL check on ospf_lookup
  result, fixes Coverity CID #70.

18 years ago[zebra] CID #31, guard against potential NULL return of route_node_lookup
Paul Jakma [Thu, 11 May 2006 13:28:05 +0000 (13:28 +0000)]
[zebra] CID #31, guard against potential NULL return of route_node_lookup

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* interface.c: (if_delete_update) route_node_lookup may return
  NULL, should fix Coverity CID #31.

18 years ago[ripngd] CID #72, remove unneeded NULL check
Paul Jakma [Thu, 11 May 2006 13:20:47 +0000 (13:20 +0000)]
[ripngd] CID #72, remove unneeded NULL check

2006-05-11 Paul Jakma <paul.jakma@sun.com>

* ripng_interface.c: (ripng_interface_address_add) Remove
  unneeded NULL check, Coverity CID #72.

18 years ago[doc] Update auto-generated quagga.info
Paul Jakma [Wed, 10 May 2006 19:53:58 +0000 (19:53 +0000)]
[doc] Update auto-generated quagga.info

2006-05-10 Paul Jakma <paul.jakma@sun.com>

* quagga.info: update auto-built file.

18 years ago[0.99] Version bump to 0.99.4
Paul Jakma [Wed, 10 May 2006 19:52:36 +0000 (19:52 +0000)]
[0.99] Version bump to 0.99.4

2006-05-10 Paul Jakma <paul.jakma@sun.com>

* configure.ac: Bump to 0.99.4

18 years ago[doc] bug #245, remove reference to non-existent log_mode argument
Paul Jakma [Mon, 8 May 2006 14:40:39 +0000 (14:40 +0000)]
[doc] bug #245, remove reference to non-existent log_mode argument

2006-05-08 Paul Jakma <paul.jakma@sun.com>

* main.texi: --log_mode does not exist, remove, bug #245.

18 years ago[bgpd] Bug #240, Fix route-server crash when static routes are configured
Paul Jakma [Mon, 8 May 2006 14:37:17 +0000 (14:37 +0000)]
[bgpd] Bug #240, Fix route-server crash when static routes are configured

2006-05-08 Paul Jakma <paul.jakma@sun.com>

* bgp_route.c: (bgp_afi_node_get) given table should never be
  NULL, check/assert this.
  (bgp_static_update) Bug #240. Rsclients should only be passed
  the static update if they are configured for the afi,safi.

18 years ago[ripngd] bug #242, fix crash in routemap, ipv6 stored in in_addr.
Paul Jakma [Mon, 8 May 2006 14:32:07 +0000 (14:32 +0000)]
[ripngd] bug #242, fix crash in routemap, ipv6 stored in in_addr.

2006-05-08 Paul Jakma <paul.jakma@sun.com>

* ripng_routemap.c: (route_set_ipv6_nexthop_local_compile) bug
  #242, s/in_addr/in6_addr to fix crash.
  Thanks to jithinvachery+quagga@gmail.com.

18 years ago[bgpd] CID#62 fix double-free, use-after-free in community_str2com
Paul Jakma [Mon, 8 May 2006 14:25:09 +0000 (14:25 +0000)]
[bgpd] CID#62 fix double-free, use-after-free in community_str2com

2006-05-08 Paul Jakma <paul.jakma@sun.com>

* bgp_community.c: (community_str2com) Coverity CID#62, fix
  double-free, use-after-free.

18 years ago[bgpd] Fix bug where FSM can stay hung forever in Idle/Clrng
Paul Jakma [Thu, 4 May 2006 08:08:15 +0000 (08:08 +0000)]
[bgpd] Fix bug where FSM can stay hung forever in Idle/Clrng

2006-05-04 Paul Jakma <paul.jakma@sun.com>

* bgp_route.c: (general) Fix logical bug in clearing, noted
  by Chris Caputo in [quagga-users 6728] - clearing depended on
  at least one route being added to workqueue, in order for
  workqueue completion function to restart FSM. However, if no
  routes are cleared, then the completion function never is
  called, it needs to be called manually if the workqueue
  didn't get scheduled.
  Finally, clearing is per-peer-session, not per AFI/SAFI, so
  the FSM synchronisation should be in bgp_clear_route_table.
  (bgp_clear_route_table) Wrong place for FSM/clearing
  synchronisation, move to..
  (bgp_clear_route) FSM/clearing synchronisation should be
  here.
  If no routes were cleared, no workqueue scheduled, call
  the completion func to ensure FSM kicks off again.

18 years ago[bgpd] bug #210: Enable crucial VPNv4 code which was disabled
Paul Jakma [Thu, 4 May 2006 07:52:12 +0000 (07:52 +0000)]
[bgpd] bug #210: Enable crucial VPNv4 code which was disabled

2006-05-04 Paul Jakma <paul.jakma@sun.com>

* (general) VPNv4 fixes. Certain VPNv4 code was not enabled.
  See bug #210.
* bgp_attr.{c,h}: (bgp_packet_{withdraw,attribute}) Tag should be
  u_char really.
* bgp_packet.c: (bgp_{update,withdraw}_packet) Enable some
  VPNv4 code which inexplicably was ifdef'd out. comments from
  a tester on IRC suggest this fixes bug #210.

18 years ago[docs] Update ripd docs on version and authentication, see bugs #261,#262
Paul Jakma [Thu, 4 May 2006 07:37:37 +0000 (07:37 +0000)]
[docs] Update ripd docs on version and authentication, see bugs #261,#262

2006-05-04 Paul Jakma <paul.jakma@sun.com>

* ripd.texi: Add Version Control as a distinct section.
  Expand Version Control section with overview text,
  touching on insecurity of RIPv1 and referencing
  authentication section, cleanup text of various version
  commands.
  RIP Authentication: Add overview text, refer to RIPv1 version
  control, which is required to completely secure RIP.

18 years ago[ripd] bugs #261, #262: Fix RIPv1 info-leak and unauthenticated route updates
Paul Jakma [Thu, 4 May 2006 07:36:34 +0000 (07:36 +0000)]
[ripd] bugs #261, #262: Fix RIPv1 info-leak and unauthenticated route updates

2006-05-04 Paul Jakma <paul.jakma@sun.com>

* (general) Fixes for bugs #261 and 262. Thanks to
  Konstantin V. Gavrilenko <kos@arhont.com> for the problem
  reports, testing of a series of proposed patches and comment
  on the proposed changes in behaviour.
* rip_interface.c: (ip_rip_authentication_mode_cmd) Parse all
  of the command before making any changes to configured state.
* ripd.c: (rip_read) RIP version control should be absolute and
          always apply, fixes bug #261 by allowing RIPv1 to be disabled.
  Fix bug #262: If authentication is enabled, then
  unauthenticated packets should not be accepted. We do however
  make an exception for RIPv1 REQUEST packets, to which we will
  reply as RIPv1 can now be disabled fully, to allow ripd to
  still provide routing /information/ to simple devices.

18 years ago[ospfd] Fix SPF of virtual-links
Paul Jakma [Thu, 4 May 2006 07:32:57 +0000 (07:32 +0000)]
[ospfd] Fix SPF of virtual-links

2006-04-24 Paul Jakma <paul.jakma@sun.com>

* (general) More Virtual-link fixes, again with much help in
  testing / debug from Juergen Kammer. Primarily in SPF.
* ospf_spf.h: Add guard. ospf_interface.h will include this
  header.
* ospf_interface.h: Modify ospf_vl_lookup definition to take
  struct ospf as argument, so as to allow for NULL area
  argument.
  (struct ospf_vl_data) Remove out_oi, instead add a struct
  vertex_nexthop, to use as initial nexthop for backbone paths
  through a vlink.
* ospf_interface.c: (ospf_vl_lookup) Modified to allow
  NULL area to be passed to indicate "any" (first) area.
  Add extra debug.
  (ospf_vl_set_params) vl_oi -> nexthop. Add extra debug.
  (ospf_vl_up_check) Fix debug, inet_ntoa returns a static
  buffer..
* ospf_route.c: (ospf_intra_add_router) Vlinks dont go through
  backbone, don't bother checking.
* ospf_spf.c: (static struct list vertex_list) Record vertices
  that will need to be freed.
  (cmp) Order network before router vertices, as required,
  wasn't implemented.
  (vertex_nexthop_free) Mild additional robustness check.
  (vertex_parent_free) Take void argument, as this function
  is passed as list deconstructor for vertex parent list.
  (ospf_vertex_new) More debug. Set deconstructor for parent
  list. Track allocated vertices on the vertex_list.
  (ospf_vertex_free) Get rid of the tricky recursive cleanup of
  vertices. Now frees only the given vertex.
  (ospf_vertex_add_parent) Fix assert.
  (ospf_nexthop_calculation) Fix calculation of nexthop for
  VLink vertices, lookup the vl_data and use its previously
  recorded nexthop information.
  (ospf_spf_calculate) Vertices are freed simply by deleting
  vertex_list nodes and letting ospf_vertex_free as deconstructor
  work per-node.
  (ospf_spf_calculate_timer) Trivial optimisation, leave
  backbone SPF calculation till last to reduce SPF churn on
  VLink updates.
* ospf_vty.c: (ospf_find_vl_data) update call to ospf_vl_lookup
  (no_ospf_area_vlink_cmd) ditto.
  (show_ip_ospf_interface_sub) For Vlinks, the peer address is
  more interesting than the output interface.

18 years ago[ripd] Fix logic to send updates on all connected addresses.
Andrew J. Schorr [Fri, 28 Apr 2006 16:22:36 +0000 (16:22 +0000)]
[ripd] Fix logic to send updates on all connected addresses.

2006-04-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ripd.c: (rip_update_process) Try to fix the logic for sending
  an updated on each connected network.  The new code will
  attempt to send the update on each connected network, whereas
  the previous code seemed to be attempting to avoid sending
  more than one RIPv1 update on a given interface, but was coded
  incorrectly.  The actual effect of the old code was to send
  an update only on the first connected address in the cases
  where the interface is not multicast, or RIPv2 is not being used.

18 years ago[solaris] Manifest referenced non-existent services, fix.
Paul Jakma [Mon, 3 Apr 2006 21:27:20 +0000 (21:27 +0000)]
[solaris] Manifest referenced non-existent services, fix.

2006-04-03 Paul Jakma <paul.jakma@sun.com>

* quagga.xml.in: oops, ipvX-routing services don't exist yet in
  any Solaris builds.

18 years ago[ospfd] Fix virtual-link handling in nbrs route-table, exposed by bug#234 fix
Paul Jakma [Mon, 3 Apr 2006 21:25:32 +0000 (21:25 +0000)]
[ospfd] Fix virtual-link handling in nbrs route-table, exposed by bug#234 fix

2006-04-03 Paul Jakma <paul.jakma@sun.com>

* (general) Fix issues with handling of Vlinks and entries
  in the nbrs route-table which were highlighted by the
  nsm/nbr_self fixes from bug #234. Many thanks to Juergen
  Kammer for his help and efforts in testing out debug patches to
  pinpoint the issue.
* ospf_interface.c: (ospf_vl_new) Add nbr_self for Vlink.
* ospf_neighbor.c: (ospf_nbr_key) new static function, helper
  to create key in nbrs table for a given nbr.
  (ospf_nbr_delete) Use ospf_nbr_key. Add an assert() to
  document an expected state.
  (ospf_nbr_add_self) Ditto.
  (ospf_nbr_lookup_by_addr) Add an assert.
* ospf_nsm.c: (nsm_kill_nbr) Can never kill the nbr_self
  psuedo-neighbour.

18 years ago[doc] document version zserv header, add txt figures, make pdf figs nicer
Paul Jakma [Mon, 3 Apr 2006 21:24:27 +0000 (21:24 +0000)]
[doc] document version zserv header, add txt figures, make pdf figs nicer

2006-03-31 Paul Jakma <paul.jakma@sun.com>

* fig*.txt: New files, txt versions of the diagrammes for the
  info file.
* protocol.texi: Document the new version 1 header.
* routeserver.texi: Explicitly specify scaling widths for the
  figures, only way to make them look reasonable, sadly.
  Try fix some formatting and explicitely note lists as being
  bulleted.
* Makefile.am: convert seems to do png to pdf just fine. No
  need for intermediate eps.
  Add txt figure expansions and list as dependencies and
  EXTRA_DIST files.

18 years agoSync rebuild of cvs_head
Paul Jakma [Thu, 30 Mar 2006 15:04:44 +0000 (16:04 +0100)]
Sync rebuild of cvs_head

18 years ago[lib] command.c exports host global, add it to header.
Paul Jakma [Thu, 30 Mar 2006 15:00:30 +0000 (15:00 +0000)]
[lib] command.c exports host global, add it to header.

2006-03-14 Paul Jakma <paul.jakma@sun.com>

* privs.c: (zprivs_caps_init) Change user IDs before lowering
  privileges, while this seems to work on Linux, on Solaris
  it rightfully refuses due to PRIV_PROC_SETID having been
  dropped.
* command.h: Add the struct host global exported from command.c

18 years ago[lib] Trivial: fix line lengths of a comment in workqueu.c
Paul Jakma [Thu, 30 Mar 2006 14:45:47 +0000 (14:45 +0000)]
[lib] Trivial: fix line lengths of a comment in workqueu.c

2006-03-30 Paul Jakma <paul.jakma@sun.com>

* workqueue.c: (work_queue_run) fix line length of comment

18 years ago[lib] Mark most arguments in DEFUN_CMD_FUNC_TEXT as potentially unused
Paul Jakma [Thu, 30 Mar 2006 14:43:17 +0000 (14:43 +0000)]
[lib] Mark most arguments in DEFUN_CMD_FUNC_TEXT as potentially unused

2006-03-30 Paul Jakma <paul.jakma@sun.com>

* command.h: (DEFUN_CMD_FUNC_TEXT) Annotate arguments as
  potentially being unused.

18 years ago[bgpd] Fix infinite loop in community_str2com
Paul Jakma [Thu, 30 Mar 2006 14:39:35 +0000 (14:39 +0000)]
[bgpd] Fix infinite loop in community_str2com

2006-03-30 Paul Jakma <paul.jakma@sun.com>

* bgp_community.c: (community_gettoken) Unknown token should
  return NULL, to give a strong indication to callers that
  the token no longer can be parsed, otherwise callers looping
  on this function may have a hard time ending their loop.
  (community_str2com) While loop around community_gettoken appears
  to have been coded thinking that break statement would break
  from the while{}, hence it could never exit for unknown token
  case. Fix it to do..while, so it can use the NULL result from
  community_gettoken easily.