summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2005-01-31 Paul Jakma <paul@dishone.st>quagga.0.98.1.releasepaul2005-01-314-5/+13
| | | | | * configure.ac: Bump version to 0.98.0 * doc/quagga.info: Version bump (autogenerated)
* * ospf_packet.c: [ospf_packet_add] If oi->obuf is NULL, printhasso2005-01-302-0/+26
|\ | | | | | | | | | | | | | | an error message and return. [ospf_read] If the interface state is ISM_InterfaceDown, issue a warning message and ignore the packet. [backport from HEAD]
| * 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-308-11/+33
| | | | | | | | | | | | | | | | | | | | * daemon.c: (daemon) Replace perror with zlog_err. * vty.c: (vty_serv_un) Replace perror with zlog_err. * ripd.c: (rip_create_socket) Replace perror with zlog_err. * ioctl.c: (if_ioctl,if_ioctl_ipv6,if_get_flags) Replace perror with zlog_err. * ioctl_solaris.c: (if_ioctl,if_ioctl_ipv6) Replace perror with zlog_err.
| * 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-302-2/+10
| | | | | | | | | | * ripng_interface.c: (ripng_multicast_join) Save errno before calling ripngd_privs.change.
| * 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-302-1/+8
| | | | | | | | | | * ripd.c: (rip_create_socket) Save errno before calling ripd_privs.change.
| * 2005-01-30 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-302-4/+14
| | | | | | | | | | * ospf_network.c: (ospf_sock_init) Save errno before calling ospfd_privs.change.
| * 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-2911-133/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * buffer.h: Fix comment on buffer_getstr to reflect that it now uses XMALLOC. * buffer.c: (buffer_getstr) Use XMALLOC(MTYPE_TMP) instead of malloc. * filter.c: (access_list_remark,ipv6_access_list_remark) Use argv_concat instead of buffer_getstr. * if.c: (interface_desc) Use argv_concat instead of buffer_getstr. * plist.c: (ip_prefix_list_description,ipv6_prefix_list_description) Use argv_concat instead of buffer_getstr. * bgp_filter.c: (ip_as_path,no_ip_as_path) Use argv_concat instead of buffer_getstr. * bgp_route.c: (bgp_show_regexp) Fix memory leak: need to free string returned by buffer_getstr. (bgp_show_community) Must use XFREE instead of free on string returned by buffer_getstr. * bgp_routemap.c: (set_community) Must use XFREE instead of free on string returned by buffer_getstr. * bgp_vty.c: (neighbor_description) Use argv_concat instead of buffer_getstr.
| * 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-296-32/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | * if_ioctl_solaris.c: (interface_list_ioctl) Save errno before calling zserv_privs.change. * ioctl{,_solaris}.c: (if_ioctl,if_ioctl_ipv6) Save errno before calling zserv_privs.change. * ipforward_solaris.c: (solaris_nd) Save errno before calling zserv_privs.change. * irdp_main.c: (irdp_sock_init) Save errno before calling zserv_privs.change. [backport candidate]
| * 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-292-6/+20
| | | | | | | | | | | | | | * rt_netlink.c: (netlink_socket,netlink_request,netlink_parse_info, netlink_talk) Save errno before calling zserv_privs.change. [backport candidate]
| * 2005-01-29 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-292-0/+26
| | | | | | | | | | | | | | * ospf_packet.c: (ospf_packet_add) If oi->obuf is NULL, print an error message and return. (ospf_read) If the interface state is ISM_InterfaceDown, issue a warning message and ignore the packet.
| * 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-283-160/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * vtysh.h: Remove obsolete VTYSH_INDEX_* defines. Fix many prototypes for functions with no arguments (must specify argument list as void). * vtysh.c: Enhance vtysh_client array to include the daemon's name and bitmask and socket path (in addition to the fd). This allows us to use loop constructs for various operations that need to be applied to all client daemons, and it facilitates better error messages. Also fix some prototypes with void argument lists. (vclient_close) Issue a warning message indicating which daemon's socket is being closed. (vtysh_execute_func,vtysh_config_from_file) Use a for loop to call vtysh_client_execute. (vtysh_write_terminal,write_config_integrated) Use a for loop to call vtysh_client_config. (vtysh_write_memory) Use a for loop to call vtysh_client_execute. (vtysh_show_daemons) Use a for loop. (vtysh_connect) The struct vtysh_client is now statically initialized, so do not initialize it here. (vtysh_connect_all) Use a for loop to call vtysh_connect. Set ripd_client pointer for use in vtysh_exit_ripd_only.
| * 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-283-1/+30
| | | | | | | | | | | | * lib/buffer.h: Document behavior of buffer_getstr function. * lib/buffer.c: (buffer_getstr) Fix bug: must handle case where the string extends beyond the head struct buffer_data.
| * 2005-01-28 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-283-25/+34
| | | | | | | | | | | | | | | | | | * lib/command.h: Document behavior of argv_concat function. * lib/command.c: (argv_concat) Calculate total string length first so we can call malloc just once (instead of realloc'ing to add each string element). (do_echo,config_logmsg) Allow for possible NULL return value from argv_concat.
| * 2005-01-25 Paul Jakma <paul@dishone.st>paul2005-01-252-2/+6
| | | | | | | | * ospf6_asbr.c: Add "hsls" to the zroute_name const char array.
| * 2005-01-24 Paul Jakma <paul@dishone.st>paul2005-01-244-5/+13
| | | | | | | | | | * configure.ac: Bump version to 0.99.0 * doc/quagga.info: Version bump (autogenerated)
* | * bgp_route.c: Fix showstopper bug. New route must be selected alsohasso2005-01-242-1/+7
|\| | | | | | | | | | | if old one is flaged as BGP_INFO_ATTR_CHANGED. [backport from HEAD]
| * * bgp_route.c: Fix showstopper bug. New route must be selected alsohasso2005-01-242-1/+7
| | | | | | | | if old one is flaged as BGP_INFO_ATTR_CHANGED.
| * 2005-01-24 Martin Pot <mpot at martybugs.net>paul2005-01-242-0/+22
| | | | | | | | * zebra/rt_netlink.c: ignore wireless newlink netlink messages.
| * * lib/command.[ch]: Make node_parent() function nonstatic. vtyh.c willhasso2005-01-235-3/+54
| | | | | | | | | | | | use it as well. * vtysh/vtysh.c: Implement walkup in node tree for vtysh as it already works in vty.
* | * log.h: Test for SA_SIGINFO to see whether zlog_signal takes finalhasso2005-01-234-10/+75
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | two args [siginfo and program_counter]. * log.c: [hex_append] Include this function only if SA_SIGINFO or HAVE_GLIBC_BACKTRACE is defined. [zlog_signal] Final two args [siginfo and program_counter] now depend on whether SA_SIGINFO is defined on this platform. * sigevent.c: [program_counter] Do not include this function if SA_SIGINFO is not defined on this platform. [exit_handler,core_handler] Test for SA_SIGINFO to decide whether 2nd & 3rd arguments are present and to decide how to invoke zlog_signal. [trap_default_signals] Test for SA_SIGINFO and invoke sigaction appropriately. [backport from HEAD]
* | * log.h: Change prototype for zlog_backtrace_sigsafe to take additionalhasso2005-01-233-4/+21
|\| | | | | | | | | | | | | | | | | | | | | program_counter argument. * log.c: [zlog_backtrace_sigsafe] Add additional program_counter argument. If it is non-NULL, use backtrace_symbols_fd to resolve the address. [zlog_signal] Call zlog_backtrace_sigsafe with additional program_counter argument. [backport from HEAD]
* | * configure.ac: Test for header file <ucontext.h> [for use inhasso2005-01-236-21/+85
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | signal processing]. * sigevent.c: [trap_default_signals] Use the SA_SIGINFO flag to pass additional siginfo_t and ucontext_t arguments to core_handler and exit_handler. [core_handler,exit_handler] Now invoked with 3 arguments [using SA_SIGINFO]. Pass additional info to zlog_signal. [program_counter] New function to find program counter in ucontext_t, needs to be enhanced to support more platforms [currently works only on Linux/x86]. * log.h: Change the zlog_signal prototype to add new arguments siginfo_t * and program_counter. * log.c: [zlog_signal] Add new arguments siginfo and program_counter. Include si_addr and program counter [if non-NULL] in message. And remove #ifdef HAVE_GLIBC_BACKTRACE around hex_append, since that is now used to render the si_addr and PC pointers. [backport from HEAD]
* | * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" ->hasso2005-01-232-1/+6
|\| | | | | | | | | | | "integrated-vtysh-config". [backport from HEAD]
| * * vtysh.conf.sample: Fix typo "integrated-vtysh-conf" ->hasso2005-01-232-1/+6
| | | | | | | | "integrated-vtysh-config".
| * 2005-01-18 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-184-10/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * log.h: Test for SA_SIGINFO to see whether zlog_signal takes final two args (siginfo and program_counter). * log.c: (hex_append) Include this function only if SA_SIGINFO or HAVE_GLIBC_BACKTRACE is defined. (zlog_signal) Final two args (siginfo and program_counter) now depend on whether SA_SIGINFO is defined on this platform. * sigevent.c: (program_counter) Do not include this function if SA_SIGINFO is not defined on this platform. (exit_handler,core_handler) Test for SA_SIGINFO to decide whether 2nd & 3rd arguments are present and to decide how to invoke zlog_signal. (trap_default_signals) Test for SA_SIGINFO and invoke sigaction appropriately.
| * * *.c: Changed many functions to static. Some commented outhasso2005-01-1811-112/+131
| | | | | | | | functions and some tiny related fixes. No functional changes.
| * * interface.c: Better statistics output in "show interface" command inhasso2005-01-182-13/+20
| | | | | | | | | | case of /proc being used. I don't have others to test with at the moment.
* | * bgp_route.c: Clear peer's routing table regardless whether it'shasso2005-01-172-3/+6
|\| | | | | | | | | | | | | configured or not. Being not configured is even better reason to do it. [backport from HEAD]
* | * main.c: With --nl-bufsize argument is required.hasso2005-01-172-1/+5
|\| | | | | | | [backport from HEAD]
* | * command.[ch], vty.c: cmd_execute_command() function must not attempthasso2005-01-176-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | to walk up in the node tree if called from vtysh. Different daemons might have commands with same syntax in different nodes (for example "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons). * vtysh.c: Reflect changes in lib. cmd_execute_command() should know now that it's called from vtysh and must not attempt to walk up in the node tree. [backport from HEAD]
* | * redhat/quagga.spec.in: Fix postun script to avoid misleading errorhasso2005-01-172-1/+8
|\| | | | | | | | | | | | | message saying the postun scriptlet failed when watchquagga is not running. [backport from HEAD]
* | * command.c (print_version): Do not bother even to examine host.name,hasso2005-01-172-1/+7
| | | | | | | | | | | | since it is always NULL when this function is called from main. [backport from HEAD]
* | * watchquagga.c: (run_job) Fix bug: delay.tv_sec was being usedhasso2005-01-172-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | without having been initialized when the "force" argument was true. (try_restart) When phased restart is stopping the routing daemons, it should tell run_job to update the restart interval. (phase_check) In final step of phased restart when the routing daemons are being started again, tell run_job not to update the restart interval (this is now done when the daemons are stopped). [backport from HEAD]
* | * zebra.h: If not C99 and no va_copy macro available, fall back tohasso2005-01-172-2/+15
|\| | | | | | | | | | | memcpy (solves a build problem on FreeBSD 4.x). [backport from HEAD]
* | 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>hasso2005-01-172-3/+47
|\| | | | | | | | | | | | | | | | | | | | | * redhat/quagga.spec.in: Pass --enable-gcc-rdynamic to configure to get gcc to link with -rdynamic for better backtraces. When the rpm is upgraded, the restart logic now works as follows: 1. stop watchquagga; 2. stop all routing daemons; 3. restart zebra if it was running; 4. start all routing daemons that were running; and 5. start watchquagga if it was running. [backport from HEAD]
* | * configure.ac: If configure is invoked with --enable-snmp, buthasso2005-01-172-0/+10
|\| | | | | | | | | | | | | the configure script is unable to find SNMP support on the platform, then configure should give an error message and exit. [backport from HEAD]
| * 2005-01-17 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-173-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | * log.h: Change prototype for zlog_backtrace_sigsafe to take additional program_counter argument. * log.c: (zlog_backtrace_sigsafe) Add additional program_counter argument. If it is non-NULL, use backtrace_symbols_fd to resolve the address. (zlog_signal) Call zlog_backtrace_sigsafe with additional program_counter argument. [pullup candidate]
| * * bgp_route.c: Clear peer's routing table regardless whether it'shasso2005-01-172-3/+6
| | | | | | | | | | configured or not. Being not configured is even better reason to do it.
| * * main.c: With --nl-bufsize argument is required.hasso2005-01-162-1/+5
| | | | | | | | [pullup candidate]
| * * command.[ch], vty.c: cmd_execute_command() function must not attempthasso2005-01-166-5/+22
| | | | | | | | | | | | | | | | | | | | | | | | to walk up in the node tree if called from vtysh. Different daemons might have commands with same syntax in different nodes (for example "router-id x.x.x.x" commands in zebra/ospfd/ospf6d daemons). * vtysh.c: Reflect changes in lib. cmd_execute_command() should know now that it's called from vtysh and must not attempt to walk up in the node tree. [pullup candidate]
| * 2005-01-15 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-152-1/+8
| | | | | | | | | | | | | | | | * redhat/quagga.spec.in: Fix postun script to avoid misleading error message saying the postun scriptlet failed when watchquagga is not running. (pullup candidate)
| * 2005-01-14 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-142-4/+8
| | | | | | | | | | * command.c (print_version): Do not bother even to examine host.name, since it is always NULL when this function is called from main.
| * 2005-01-14 Greg Troxel <gdt@fnord.ir.bbn.com>gdt2005-01-142-2/+9
| | | | | | | | | | | | | | * command.c (print_version): Don't print host.name if it is NULL. Fixes segfault on Solaris reported by Goetz von Escher <goetz@open.ch> (pullup candidate)
| * Ignore <dist tarball>.asc - i always seem to have one hanging around frompaul2005-01-121-0/+1
| | | | | | | | last release..
| * 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-126-21/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: Test for header file <ucontext.h> (for use in signal processing). * sigevent.c: (trap_default_signals) Use the SA_SIGINFO flag to pass additional siginfo_t and ucontext_t arguments to core_handler and exit_handler. (core_handler,exit_handler) Now invoked with 3 arguments (using SA_SIGINFO). Pass additional info to zlog_signal. (program_counter) New function to find program counter in ucontext_t, needs to be enhanced to support more platforms (currently works only on Linux/x86). * log.h: Change the zlog_signal prototype to add new arguments siginfo_t * and program_counter. * log.c: (zlog_signal) Add new arguments siginfo and program_counter. Include si_addr and program counter (if non-NULL) in message. And remove #ifdef HAVE_GLIBC_BACKTRACE around hex_append, since that is now used to render the si_addr and PC pointers.
| * 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-122-0/+10
| | | | | | | | | | | | * configure.ac: If configure is invoked with --enable-snmp, but the configure script is unable to find SNMP support on the platform, then configure should give an error message and exit.
| * 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-122-3/+47
| | | | | | | | | | | | | | | | | | * redhat/quagga.spec.in: Pass --enable-gcc-rdynamic to configure to get gcc to link with -rdynamic for better backtraces. When the rpm is upgraded, the restart logic now works as follows: 1. stop watchquagga; 2. stop all routing daemons; 3. restart zebra if it was running; 4. start all routing daemons that were running; and 5. start watchquagga if it was running.
| * 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-122-4/+18
| | | | | | | | | | | | | | | | | | | | | | * watchquagga.c: (run_job) Fix bug: delay.tv_sec was being used without having been initialized when the "force" argument was true. (try_restart) When phased restart is stopping the routing daemons, it should tell run_job to update the restart interval. (phase_check) In final step of phased restart when the routing daemons are being started again, tell run_job not to update the restart interval (this is now done when the daemons are stopped).
| * 2005-01-12 Andrew J. Schorr <ajschorr@alumni.princeton.edu>ajs2005-01-122-2/+15
| | | | | | | | | | * zebra.h: If not C99 and no va_copy macro available, fall back to memcpy (solves a build problem on FreeBSD 4.x).
* | Backport documentation fixes from Paul to the 0.98 stable branch.hasso2005-01-120-0/+0
| |