]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
19 years ago2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 12 Jan 2005 16:18:17 +0000 (16:18 +0000)]
2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* zebra.h: If not C99 and no va_copy macro available, fall back to
  memcpy (solves a build problem on FreeBSD 4.x).

19 years ago2005-01-10 Paul Jakma <paul@dishone.st>
paul [Mon, 10 Jan 2005 22:31:16 +0000 (22:31 +0000)]
2005-01-10 Paul Jakma <paul@dishone.st>

* texinfo.tex: Updated to a version which understands @{ and @}
* vtysh.texi: Add node name for @section
* quagga.info: updated build of autogenerated file

19 years ago2005-01-10 Greg Troxel <gdt@fnord.ir.bbn.com>
gdt [Mon, 10 Jan 2005 14:20:43 +0000 (14:20 +0000)]
2005-01-10  Greg Troxel  <gdt@fnord.ir.bbn.com>

        * ospf_packet.h: Remove commented out definition of
        OSPF_MAX_PACKET; neither it or the uncommented one are used any more.

        * ospf_packet.c (ospf_make_ls_upd): Leave room for authentication
        when deciding if an update will fit.
        (ospf_packet_authspace): Factor out calculation of size required
        for authentication.
        (ospf_make_db_desc): Use ospf_max_packet, not OSPF_MAX_PACKET.
        Don't confuse readers that there is a macro.

19 years ago2005-01-07 Paul Jakma <paul@dishone.st>
paul [Fri, 7 Jan 2005 14:17:39 +0000 (14:17 +0000)]
2005-01-07 Paul Jakma <paul@dishone.st>

* configure.ac: Bump version to 0.98.0
* doc/quagga.info: Version bump (autogenerated)

19 years ago2005-01-05 Paul Jakma <paul@dishone.st>
paul [Wed, 5 Jan 2005 11:58:31 +0000 (11:58 +0000)]
2005-01-05 Paul Jakma <paul@dishone.st>

* configure.ac: Bump version to 0.97.5
* doc/quagga.info: autogenerated, version bump.

19 years ago2005-01-05 Paul Jakma <paul@dishone.st>
paul [Wed, 5 Jan 2005 08:30:35 +0000 (08:30 +0000)]
2005-01-05 Paul Jakma <paul@dishone.st>

* zserv.c: (zebra_accept) Comment out setting of socket to NONBLOCK
          for now, as we dont actually deal with with resending.... See
          bugzilla #122, fix from wawa@yandex-team.ru (Vladimir Ivanov).
* kernel_socket.c: (routing_socket) ditto.

19 years ago2005-01-05 Paul Jakma <paul@dishone.st>
paul [Wed, 5 Jan 2005 08:14:13 +0000 (08:14 +0000)]
2005-01-05 Paul Jakma <paul@dishone.st>

* bgp_packet.c: (bgp_write) set socket to nonblock while writing
          this should be generalised. See bugzilla #102. Fix supplied by
  wawa@yandex-team.ru (Vladimir Ivanov).

19 years agominor fix to HAVE_BROKEN_CMSG_FIRSTHDR support: use AC_MSG_CHECKING
gdt [Tue, 4 Jan 2005 17:02:48 +0000 (17:02 +0000)]
minor fix to HAVE_BROKEN_CMSG_FIRSTHDR support: use AC_MSG_CHECKING
etc. so configure output shows the choice we made.

(Andrew: please recheck on a buggy system; it configures/compiles fine
on NetBSD.)

19 years ago2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 4 Jan 2005 16:24:43 +0000 (16:24 +0000)]
2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* configure.ac: Added test for broken CMSG_FIRSTHDR macro
  (relevant for Solaris 8 and unpatched Solaris 9, don't know
  whether other platforms are affected).
* zebra.h: Define ZCMSG_FIRSTHDR appropriately based on whether
  config.h indicates HAVE_BROKEN_CMSG_FIRSTHDR (as determined
  by the configure test program).
* sockopt.c: (getsockopt_cmsg_data) Use ZCMSG_FIRSTHDR instead
  of CMSG_FIRSTHDR.
* rtadv.c: (rtadv_recv_packet,rtadv_send_packet) Use ZCMSG_FIRSTHDR
  instead of CMSG_FIRSTHDR.
* ripd.c: (rip_recvmsg) Use ZCMSG_FIRSTHDR instead of CMSG_FIRSTHDR.
* ripngd.c: (ripng_recv_packet) Use ZCMSG_FIRSTHDR instead of
  CMSG_FIRSTHDR.

19 years ago2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 4 Jan 2005 13:20:47 +0000 (13:20 +0000)]
2005-01-04 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* NEWS: Note improved logging facilities.

19 years agoReverting some int -> unsigned int fixes in command.c for now. Fixes crash
hasso [Sun, 2 Jan 2005 18:51:01 +0000 (18:51 +0000)]
Reverting some int -> unsigned int fixes in command.c for now. Fixes crash
described in [quagga-dev 2292].

19 years agoMore cleanup in isisd.
hasso [Sat, 1 Jan 2005 21:12:56 +0000 (21:12 +0000)]
More cleanup in isisd.

19 years agoMove TODO items from isid to the common TODO.
hasso [Sat, 1 Jan 2005 21:02:13 +0000 (21:02 +0000)]
Move TODO items from isid to the common TODO.

19 years agoThere is no need to keep this directory.
hasso [Sat, 1 Jan 2005 20:49:21 +0000 (20:49 +0000)]
There is no need to keep this directory.

19 years agoMake authentication of SNPs work correctly - ie. conditionally like it is in
hasso [Sat, 1 Jan 2005 10:29:51 +0000 (10:29 +0000)]
Make authentication of SNPs work correctly - ie. conditionally like it is in
IOS.

19 years ago2004-12-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 30 Dec 2004 15:11:19 +0000 (15:11 +0000)]
2004-12-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_network.c: Improve all setsockopt error messages to give detailed
  information on the arguments.

19 years agoAdd comment explaining about limit of 20 joined groups on a socket.
gdt [Thu, 30 Dec 2004 13:50:32 +0000 (13:50 +0000)]
Add comment explaining about limit of 20 joined groups on a socket.

19 years ago2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 29 Dec 2004 21:04:48 +0000 (21:04 +0000)]
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_packet.c: (ospf_db_desc) Reduce severity of "Negotiation done"
  messages from LOG_WARNING to LOG_INFO, since this seems to be
  normal.

19 years ago2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 29 Dec 2004 20:41:26 +0000 (20:41 +0000)]
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_packet.c: (ospf_read) Always look up the interface if
  ospf_recv_packet returns NULL ifp, since some platforms such
  as Solaris 8 appear to support ifindex retrieval but don't.

19 years agoadd XXX comment that perhaps we need to recover from short headers.
gdt [Wed, 29 Dec 2004 20:12:59 +0000 (20:12 +0000)]
add XXX comment that perhaps we need to recover from short headers.

19 years agoReally fix crashes now. Revert isis_circuit_update_params() part of previous
hasso [Wed, 29 Dec 2004 20:06:41 +0000 (20:06 +0000)]
Really fix crashes now. Revert isis_circuit_update_params() part of previous
commit. Replace all if_is_up() calls with if_is_operative().

19 years ago2004-12-29 Greg Troxel <gdt@poblano.ir.bbn.com>
gdt [Wed, 29 Dec 2004 20:06:23 +0000 (20:06 +0000)]
2004-12-29  Greg Troxel  <gdt@poblano.ir.bbn.com>

* sockopt.c (getsockopt_ipv4_ifindex): Document calling
convention.  Beef up comments.  Handle the case where the cmsghdr
has a zero controllen, or more specifically when the wanted option
is not present.  This is needed for Solaris 8, and in general for
any platform for which configure finds a method and it can fail.
Mark some changes with XXX to be cleaned up post 0.98.

19 years agoDon't crash during interface up/down events.
hasso [Wed, 29 Dec 2004 19:34:22 +0000 (19:34 +0000)]
Don't crash during interface up/down events.

19 years ago2004-12-29 Greg Troxel <gdt@poblano.ir.bbn.com>
gdt [Wed, 29 Dec 2004 18:53:30 +0000 (18:53 +0000)]
2004-12-29  Greg Troxel  <gdt@poblano.ir.bbn.com>

* sockopt.c (getsockopt_ipv4_ifindex): Return 0 when passed a NULL
  cmsghdr pointer.

I believe this will avoid ospfd crashing on Solaris 8, which seems to
define IP_RECVIF but not actually implement it.

19 years ago2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 29 Dec 2004 17:50:22 +0000 (17:50 +0000)]
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* configure.ac: Add new option --enable-gcc-rdynamic to link
  with -rdynamic.

19 years ago2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 29 Dec 2004 17:45:08 +0000 (17:45 +0000)]
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga.c: In several places, cast pid_t to int for printf to
  avoid complaints on Solaris 8.

19 years ago2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 29 Dec 2004 17:39:10 +0000 (17:39 +0000)]
2004-12-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga.c: Fix headers: get most stuff from zebra.h.

19 years ago2004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 28 Dec 2004 21:43:17 +0000 (21:43 +0000)]
2004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* sockopt.c: (setsockopt_ipv4_ifindex) Improve error message.
  When neither IP_PKTINFO nor IP_RECVIF is defined, make return value
  deterministic (-1).

19 years ago2004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 28 Dec 2004 17:00:12 +0000 (17:00 +0000)]
2004-12-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* thread.c: (funcname_thread_add_timer_msec) Reduce overflow risk.

19 years ago*.c: Change level of debug messages to LOG_DEBUG.
hasso [Fri, 24 Dec 2004 06:00:11 +0000 (06:00 +0000)]
*.c: Change level of debug messages to LOG_DEBUG.

19 years agozlog_* cleanup. Level of debug messages to LOG_DEBUG.
hasso [Fri, 24 Dec 2004 00:14:50 +0000 (00:14 +0000)]
zlog_* cleanup. Level of debug messages to LOG_DEBUG.

19 years ago2004-12-23 Paul Jakma <paul@dishone.st>
paul [Thu, 23 Dec 2004 20:09:44 +0000 (20:09 +0000)]
2004-12-23 Paul Jakma <paul@dishone.st>

configure.ac: Bump version to 0.97.4
doc/quagga.info: ditto (autogenerated file)

19 years ago2004-12-23 Paul Jakma <paul@dishone.st>
paul [Thu, 23 Dec 2004 19:35:56 +0000 (19:35 +0000)]
2004-12-23 Paul Jakma <paul@dishone.st>

* watchquagga.c: Add missing getopt.h include

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 23 Dec 2004 00:00:58 +0000 (00:00 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* redhat/quagga.spec.in: daemonv6_list should contain only IPv6 daemons.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 17:52:29 +0000 (17:52 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* redhat/quagga.spec.in: Add watchquagga, and fix some other
  logic to make sure that all daemons are restarted on upgrades
  and stopped on package removal.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 17:00:46 +0000 (17:00 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga.c: Try for gcc 2.95 compatibility (avoid %z and a tricky
  initialization).

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 16:32:16 +0000 (16:32 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* connected.c: (connected_add_ipv4) Limit warning about /32 addresses
  with no peer specified to PtP interfaces only.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 16:18:53 +0000 (16:18 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* redhat/quagga.sysconfig: Define some variables to support watchquagga.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 16:17:16 +0000 (16:17 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga.c: Add -b option to circumvent difficulties passing
  embedded spaces in command-line arguments.  This is an ugly hack,
  we should probably use a config file instead.

19 years agoShow sums of checksums in "show ip ospf" output. Okayed by Paul and James
hasso [Wed, 22 Dec 2004 16:16:02 +0000 (16:16 +0000)]
Show sums of checksums in "show ip ospf" output. Okayed by Paul and James
R. Leu (author of original idea).

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 15:37:44 +0000 (15:37 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga.c: Use new config.h define for DAEMON_VTY_DIR.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 15:35:12 +0000 (15:35 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* configure.ac: Add a define for DAEMON_VTY_DIR in config.h.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 14:08:13 +0000 (14:08 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga.c: Get PATH_WATCHQUAGGA_PID from config.h.

19 years ago2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 14:03:52 +0000 (14:03 +0000)]
2004-12-22 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* {configure.ac,Makefile.am}: Build watchquagga by default.

19 years agoFix "show ip ospf" output. If router is configured as "translate-never", we
hasso [Wed, 22 Dec 2004 13:09:59 +0000 (13:09 +0000)]
Fix "show ip ospf" output. If router is configured as "translate-never", we
say so - we can never be translator.

19 years agoMore cosmetical vtysh fixes.
hasso [Wed, 22 Dec 2004 11:53:09 +0000 (11:53 +0000)]
More cosmetical vtysh fixes.

19 years agoShow debug configuration in vtysh.
hasso [Wed, 22 Dec 2004 09:43:20 +0000 (09:43 +0000)]
Show debug configuration in vtysh.

19 years agoNo delimiter between "ip forwarding" and "ipv6 forwarding".
hasso [Wed, 22 Dec 2004 09:27:42 +0000 (09:27 +0000)]
No delimiter between "ip forwarding" and "ipv6 forwarding".

19 years ago2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 03:41:51 +0000 (03:41 +0000)]
2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* .cvsignore: Added.

19 years ago2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 03:16:59 +0000 (03:16 +0000)]
2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* NEWS: Note addition of watchquagga.
* HACKING: Note that watchquagga is in testing phase.

19 years ago2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 03:08:25 +0000 (03:08 +0000)]
2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* watchquagga: New watchquagga daemon.

19 years ago2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 03:05:37 +0000 (03:05 +0000)]
2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* redhat/Makefile.am: Added watchquagga.init to EXTRA_DIST.

19 years ago2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 03:02:46 +0000 (03:02 +0000)]
2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* redhat/watchquagga.init: New file, init script for watchquagga.

19 years ago2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 22 Dec 2004 02:56:38 +0000 (02:56 +0000)]
2004-12-21 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* {ChangeLog,watchquagga.c,Makefile.am}: Created.

19 years ago2004-12-21 Paul Jakma <paul.jakma@sun.com>
paul [Wed, 22 Dec 2004 00:15:34 +0000 (00:15 +0000)]
2004-12-21 Paul Jakma <paul.jakma@sun.com>

* stream.c: Dont allocate streams with 0 sized data buffers

19 years ago2004-12-21 Paul Jakma <paul.jakma@sun.com>
paul [Tue, 21 Dec 2004 22:34:58 +0000 (22:34 +0000)]
2004-12-21 Paul Jakma <paul.jakma@sun.com>

* if.h: Add more 'non-generic' IFF_ flags.
* if.c: IFF_NOXMIT/IFF_VIRTUAL interfaces are 'loopback like'

19 years agoFix "show ipv6 route <proto>" command.
hasso [Sat, 18 Dec 2004 16:03:28 +0000 (16:03 +0000)]
Fix "show ipv6 route <proto>" command.

19 years agoAdd isisd.8 into list of man pages.
hasso [Sat, 18 Dec 2004 15:59:25 +0000 (15:59 +0000)]
Add isisd.8 into list of man pages.

19 years ago2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 17 Dec 2004 23:16:33 +0000 (23:16 +0000)]
2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* command.c: (do_echo) Added new "echo" command, useful for
  watchdog pinging to make sure the daemon is responsive.

19 years ago2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 17 Dec 2004 20:50:00 +0000 (20:50 +0000)]
2004-12-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* pid_output.c: (pid_output_lock) Eliminate static function, and just
  use the #ifdef to decide which version of the function to include.
  This eliminates a compilation problem with gcc4.  And fix the
  non-fcntl version so that it actually compiles.  Exit with
  status 1 instead of -1 on error.

19 years ago2004-12-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 16 Dec 2004 16:18:13 +0000 (16:18 +0000)]
2004-12-16 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ripng_nexthop.c: Replace NEXTHOP_OUT macro with NEXTHOP_OUT_PTR,
  since it's not really OK to take the address of a ternary expression.
  (_ripng_rte_cmp,ripng_rte_send) Use new NEXTHOP_OUT_PTR macro
  instead of NEXTHOP_OUT.

19 years ago2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 15 Dec 2004 17:41:14 +0000 (17:41 +0000)]
2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* sigevent.c: (trap_default_signals) Ignore SIGPIPE instead of exiting.

19 years ago2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 15 Dec 2004 15:07:19 +0000 (15:07 +0000)]
2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_interface.h: Declare new function ospf_default_iftype.
* ospf_interface.c: (ospf_default_iftype) New function to centralize
  this logic in one place.
* ospf_zebra.c: (ospf_interface_add) Use new function
  ospf_default_iftype.
* ospf_vty.c: (no_ip_ospf_network,config_write_interface) Fix logic
  by using new function ospf_default_iftype.

19 years ago2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 15 Dec 2004 14:55:51 +0000 (14:55 +0000)]
2004-12-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ripd.c: (rip_read) Improve 2 error messages to show the source of
  the packet when the lookup fails.

19 years ago2004-12-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Sat, 11 Dec 2004 18:00:06 +0000 (18:00 +0000)]
2004-12-11 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_packet.c: (ospf_db_desc) Should be static, not global.
  (ospf_hello,ospf_db_desc,ospf_ls_upd,ospf_ls_ack) Improve warning
  messages to include identifying information (e.g. router id).
* ospf_nsm.c: (nsm_change_state) Improve info message to include
  router id and state names.

19 years ago2004-12-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 10 Dec 2004 22:43:17 +0000 (22:43 +0000)]
2004-12-10 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* log.c: (zlog_signal,_zlog_assert_failed) Change logging level back to
  LOG_ERR instead of LOG_EMERG.

19 years ago2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 9 Dec 2004 17:26:31 +0000 (17:26 +0000)]
2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* log.c: (hex_append) No need to include this function if
  HAVE_GLIBC_BACKTRACE is not defined.

19 years ago * ospf_apiserver.c (ospf_apiserver_term): Obtain struct
gdt [Thu, 9 Dec 2004 16:30:04 +0000 (16:30 +0000)]
   * ospf_apiserver.c (ospf_apiserver_term): Obtain struct
        ospf_apiserver * from listnode.  Remove unused variables.  Follows
        suggestion from Jay Fenlason.

19 years ago2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Thu, 9 Dec 2004 15:15:03 +0000 (15:15 +0000)]
2004-12-09 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* vtysh.c: (vtysh_connect) No reason to call geteuid and getegid,
  the results were never used.

19 years agoadd XXX comment about hex_append being unused.
gdt [Thu, 9 Dec 2004 14:53:32 +0000 (14:53 +0000)]
add XXX comment about hex_append being unused.
(only used if HAVE_GLIBC_BACKTRACE, so perhaps ifdef it?)

19 years agoospf_apiserver_term:
gdt [Thu, 9 Dec 2004 14:51:03 +0000 (14:51 +0000)]
ospf_apiserver_term:
  Remove unused variable.

  Add comment: this is seriously broken, and needs fixing.  It appears
  likely to segfault if ever called.  Comments please - should I make
  the fix I suggest in the comment?  -gdt

19 years agoadd comments about warnings
gdt [Thu, 9 Dec 2004 14:49:51 +0000 (14:49 +0000)]
add comments about warnings

19 years agoAdd const to char * to quiet warnings.
gdt [Thu, 9 Dec 2004 14:48:12 +0000 (14:48 +0000)]
Add const to char * to quiet warnings.

Note two warnings in comments.  The serious one is that struct
interface->ifindex probably needs to be signed, ssince we store and
compare to -1.

19 years agoadd comment about warning of comparison between signed and unsigned
gdt [Thu, 9 Dec 2004 14:47:09 +0000 (14:47 +0000)]
add comment about warning of comparison between signed and unsigned

19 years agoAdd comments with warnings obtained on NetBSD/i386. Both are due to
gdt [Thu, 9 Dec 2004 14:46:46 +0000 (14:46 +0000)]
Add comments with warnings obtained on NetBSD/i386.  Both are due to
size_t being used for streams.  Perhaps cast to unsigned long before
printf?  Surely that's big enough even if size_t could be larger in
theory.

(no changelog, since only comment changes)

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 22:01:48 +0000 (22:01 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.h: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 21:10:20 +0000 (21:10 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 21:03:23 +0000 (21:03 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 20:47:40 +0000 (20:47 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 20:41:23 +0000 (20:41 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 20:08:54 +0000 (20:08 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 19:59:11 +0000 (19:59 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 19:51:16 +0000 (19:51 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 19:46:50 +0000 (19:46 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 19:24:06 +0000 (19:24 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 19:06:51 +0000 (19:06 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 18:43:03 +0000 (18:43 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 18:12:06 +0000 (18:12 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 17:45:02 +0000 (17:45 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 17:28:56 +0000 (17:28 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Wed, 8 Dec 2004 17:14:45 +0000 (17:14 +0000)]
2004-12-08 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* prefix.c: (prefix_copy) Error message before abort should
  have severity LOG_ERR, not LOG_INFO.
* memory.c: (mtype_log) Log level should be LOG_DEBUG, not LOG_INFO.

19 years ago2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 7 Dec 2004 21:12:56 +0000 (21:12 +0000)]
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* *.c: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 7 Dec 2004 18:53:52 +0000 (18:53 +0000)]
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* {smux.c,zclient.c}: Change level of debug messages to LOG_DEBUG.

19 years ago2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 7 Dec 2004 17:15:55 +0000 (17:15 +0000)]
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* command.c: (config_write_host) Note that "log trap" is deprecated
  when writing out the config.

19 years ago2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Tue, 7 Dec 2004 15:39:31 +0000 (15:39 +0000)]
2004-12-07 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* bgp_main.c: (main) The 2nd argument to openzlog has been removed.
* isis_main.c: (main) The 2nd argument to openzlog has been removed.
* ospf6_main.c: (main) The 2nd argument to openzlog has been removed.
  Note that stdout logging will no longer be enabled by default when
  not running as a daemon.
* ospf_main.c: (main) The 2nd argument to openzlog has been removed.
* rip_main.c: (main) The 2nd argument to openzlog has been removed.
* ripng_main.c: (main) The 2nd argument to openzlog has been removed.
* main.c: (main) The 2nd argument to openzlog has been removed.
  So stdout logging will no longer be enabled by default.
* irdp_main.c: (irdp_finish) Reduce severity of shutdown message
  from LOG_WARNING to LOG_INFO.
* vtysh.c: Make several functions static instead of global.
  Added several commands to support destination-specific logging levels.
  (vtysh_completion) This function is unused, so comment it out.
* basic.texi: Document new logging features.  Separate basic config
  commands from basic VTY commands.
* log.h: Replace struct zlog flags and maskpri fields with maxlvl
  array to support individual logging levels for each destination.
  Remove the 2nd argument to openzlog since the default logging config
  should be standardized inside the library.  Replaced the
  zlog_set_flag and zlog_reset_flag functions with zlog_set_level.
  And zlog_set_file now requires an additional log_level argument.
  Declare zlog_proto_names for use inside command.c in the
  "show logging" command.  Added defines useful for command
  construction.
* log.c: (vzlog) Decide where to send the message based on the
  individual logging levels configured for each destination.
  Remove support for ZLOG_STDERR since it was never actually used.
  Support record-priority for terminal monitors.
  (zlog_signal,zlog_backtrace_sigsafe) Support destination-specific
  logging levels.  Remove stderr support (was never used).  Added
  support for terminal monitor logging.
  (_zlog_assert_failed) Increase message severity to LOG_EMERG.
  (openzlog) Remove 2nd argument since default config should be
  standardized in library.  By default, terminal monitoring
  is set to debug, and all other logging is disabled.
  (zlog_set_flag,zlog_reset_flag) Removed.
  (zlog_set_level) New function to replace zlog_set_flag and
  zlog_reset_flag.  Supports destination-specific logging levels.
  (zlog_set_file,zlog_reset_file) Support file-specific logging level.
  (zlog_rotate) Log an error message if fopen fails, and support
  new file-specific logging level.
* command.h: Change DEFUN_CMD_FUNC_DECL and DEFUN_CMD_FUNC_TEXT so that
  command functions will be static instead of global.  Remove
  declarations for config_exit and config_help.  Define new macros
  DEFUNSH_ATTR, DEFUNSH_HIDDEN, and DEFUNSH_DEPRECATED so we can
  have deprecated commands in vtysh.  Similarly, for completeness,
  define macros ALIAS_SH, ALIAS_SH_HIDDEN, and ALIAS_SH_DEPRECATED.
  Also, fix bug in ALIAS_ATTR macro (didn't matter because it
  was never used).
* command.c: Make many functions static instead of global.
  (facility_name,facility_match,level_match) New functions
  to support enhanced destination-specific logging levels.
  (config_write_host) Support new destination-specific logging levels.
  (config_logmsg) Added new "logmsg" command to help test logging
  system.
  (show_logging) Added "show logging" command to show the current
  configuration of the logging system.
  (config_log_stdout_level) Support explicit stdout logging level.
  (no_config_log_stdout) Now takes optional LEVEL arg.
  (config_log_monitor,config_log_monitor_level,no_config_log_monitor)
  New commands creating new "log monitor" commands to set terminal
  monitoring log level.
  (config_log_file_level) Support explicit file logging level.
  (config_log_syslog_level) Support explicit syslog logging level.
  (config_log_facility,no_config_log_facility) Implement new
  "log facility" command.
  (cmd_init) Add hooks for new commands: "show logging", "logmsg",
  "log stdout <level>", "log monitor", "log monitor <level>",
  "no log monitor", "log file <filename> <level>",
  "no log file <filename> <level>", "log syslog <level>",
  "log facility", and "no log facility".
* vty.h: Added a "level" argument to vty_log so it can support
  "log record-priority".  Declare new function vty_log_fixed for
  use in signal handlers.
* vty.c: (vty_log,vty_log_out) Added a "level" argument to support
  "log record-priority" for vty terminal monitors.
  (vty_down_level) Use config_exit_cmd.func instead of calling
  config_exit directly (since command functions will now be static
  instead of global).
  (vty_log_fixed) New function to send terminal monitor messages
  from inside a signal handler.

19 years ago2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 3 Dec 2004 19:03:33 +0000 (19:03 +0000)]
2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* HACKING: Indicate that header files should be consulted for
  documentation, particularly logging levels in lib/log.h.
* log.h: Document appropriate use of syslog logging priorities
  inside quagga.

19 years agoNeed RCS Id keyword.
ajs [Fri, 3 Dec 2004 18:01:04 +0000 (18:01 +0000)]
Need RCS Id keyword.

19 years ago2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 3 Dec 2004 17:40:31 +0000 (17:40 +0000)]
2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* command.h: Remove fields log_stdout and log_syslog from struct host,
  since they are just trying to duplicate information in the
  zlog_default structure.  Note that this fixes a bug since those
  fields were not registering any logging that was established
  in the initial call to openzlog (this affects only the zebra and
  ospf6d daemons).  It is probably a bug to turn on any logging by
  default in the call to openzlog.
* command.c: (config_write_host) Get logging info from zlog_default
  instead of now-removed fields host.log_stdout and host.log_syslog.
  (config_log_stdout,no_config_log_stdout) Do not set now-removed field
  host.log_stdout, since this info is recorded in zlog_default.
  (config_log_file) Use XSTRDUP (instead of strdup) to set host.logfile.
  (config_log_syslog,config_log_syslog_facility,no_config_log_syslog)
  Do not set now-removed field host.log_syslog, since this info is
  recorded in zlog_default.

19 years ago2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 3 Dec 2004 16:43:24 +0000 (16:43 +0000)]
2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* ospf_packet.c: (ospf_db_desc) Reduce priority on a debug message
  from LOG_NOTICE to LOG_DEBUG.

19 years ago2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
ajs [Fri, 3 Dec 2004 16:36:46 +0000 (16:36 +0000)]
2004-12-03 Andrew J. Schorr <ajschorr@alumni.princeton.edu>

* bgp_main.c: (sigint) Use zlog_notice for termination message.
  (main) Use zlog_notice for startup announcement.
* isis_main.c: (sigint,sigterm) Use zlog_notice for termination message.
  (terminate) This function should be static, not global.
  (main) Use zlog_notice for startup announcement, and remove
  ifdef ZEBRA_VERSION.
* version.h.in: Remove declaration for pid_output_lock, this function
  is now static, not global.
* pid_output.c: (pid_output_lock) This function should be static, not
  global.  And remove "old umask" error message, since it was really
  an unimportant debug message, not an error.
  (pid_output) Need to declare static function pid_output_lock.
* ospf6_main.c: (sigint,sigterm) Use zlog_notice for termination
  message.
  (main) Remove commented-out call to pid_output_lock (which should
  never be called other than from inside pid_output).  And use
  zlog_notice to print the startup message, which now includes
  the vty port.
* ospf_main.c: (sigint) Use zlog_notice for termination message.
  (main) Issue a startup announcement using zlog_notice.
* rip_main.c: (sigint) Use zlog_notice for termination message.
  (main) Add a startup announcement using zlog_notice.
* ripng_main.c: (sighup) Remove spurious terminating message.
  (sigint) Use zlog_notice for termination message.
  (main) Issue a startup announcement using zlog_notice.
* main.c: (sigint) Use zlog_notice for termination message.
  (main) Add a startup announcement using zlog_notice.