commit e6a01955a7d26dda6f0ecfb6a787d4c46442303b Author: Paul Jakma Date: Fri Jul 27 16:48:55 2007 +0000 2007-07-27 Paul Jakma * configure.ac: Bump version to 0.99.8 commit 97cabcf760b8343512b5646e60cc228b8dc1350a Author: Andrew J. Schorr Date: Fri Jul 6 17:00:24 2007 +0000 [lib] Add comments regarding setsockopt_multicast_ipv4 arguments. 2007-07-06 Andrew J. Schorr * sockopt.{c,h}: (setsockopt_multicast_ipv4) Add some comments about the arguments. commit 0b8c4f1d811170224e467b305137ac94861daee6 Author: Paul Jakma Date: Wed Jun 27 11:12:38 2007 +0000 [zebra] rib loop check for RIB_ENTRY_REMOVED checks wrong var 2007-06-25 Denis Ovsienko * zebra_rib.c: (rib_add_ipv4_multipath) Loop through RIB is using 'same' variable, but RIB_ENTRY_REMOVED check is testing the constant 'rib' variable, fix. Impact unknown at this point. commit fbf24544a2e2ac97192502d34729f57933d1eb4c Author: Hasso Tepper Date: Mon Jun 25 19:30:59 2007 +0000 2007-06-25 Hasso Tepper * configure.ac: Fix typo so it compiles again on BSD systems. commit 536792cd883439237c4098f925ea6921122d12ef Author: Paul Jakma Date: Fri Jun 22 19:11:14 2007 +0000 [bgpd] bug #368: Fix possible loop between peers going Idle<->OpenSent 2007-06-22 Paul Jakma * bgp_fsm.c: (struct FSM) Bug #368. TCP Errors during OpenSent should cycle to Active, not to Idle or else peer bringup can race and cycle Idle<->Active. Reported and fix tested by Mukesh Agrawal. commit 11770e10861ccb684b608396c798aea9da05a1a2 Author: Paul Jakma Date: Fri Jun 22 16:14:42 2007 +0000 [build] configure needs to check for struct icmphdr for IRDP 2007-06-22 Paul Jakma * configure.ac: IRDP also depends on struct icmphdr, enabling only on in_pktinfo breaks when an OS acquires pktinfo, as Solaris NV has. Reported by Jim Carlson. commit 8454b05606c906cff891fa97b4395d1e2fdb8cde Author: Paul Jakma Date: Wed Jun 20 15:22:14 2007 +0000 [vtysh] bug #371: vtysh forgets to print 'end' for write-terminal 2007-06-20 Nicolas Deffayet * vtysh.c: (vtysh_write_terminal) Write 'end' when done, to be consistent with telnet vty, and expected by tools like rancid. commit b24970241aa19c780a00f0e9c865b98c239a27f2 Author: Paul Jakma Date: Thu Jun 14 11:17:58 2007 +0000 [bgpd] bug #370, default-originate was broken by a silly thinko 2007-05-25 Paul Jakma * bgp_route.c: (bgp_default_originate) Sanity check added previously was broken and always failed, thus this function never could run, bug #370. commit e733f949448e1cf9fa27e8b618c56a0e4badc1af Author: Andrew J. Schorr Date: Thu Jun 7 13:11:58 2007 +0000 [ospf6d] Fix silly bug: muse use strcmp to compare strings 2007-06-07 Pavol Rusnak * ospf6_lsa.c: (no_debug_ospf6_lsa_hex_cmd) Fix bug: must use strcmp to compare strings. commit 0dc0b7080227df8aca6cc2f7961c3c55cb73c509 Author: Andrew J. Schorr Date: Fri Jun 1 13:21:20 2007 +0000 [linux] Fix strange compilation problem by explicitly including 2007-06-01 Andrew J. Schorr * zebra.h: On linux, we seem to need to include before , otherwise we get isisd compilation errors about __be16 not being defined. commit 093033144658c5d914429fad5b0a6cf952f20943 Author: Andrew J. Schorr Date: Wed May 30 20:10:34 2007 +0000 [zebra] Trivial patches so we can compile when IPv6 is not enabled 2007-05-30 Andrew J. Schorr * zebra_routemap.c: (route_set_src_compile) Use '#ifdef HAVE_IPV6' as needed. * zebra_vty.c: (vty_show_ip_route_detail, vty_show_ip_route) Use '#ifdef HAVE_IPV6' as needed. (show_ip_protocol) Move function definition outside of '#ifdef HAVE_IPV6' section. commit 7ab62c5319bd86a3cfda32351bc4103cf9517f26 Author: Andrew J. Schorr Date: Thu May 17 15:00:41 2007 +0000 [PtP] Fix BSD problems with PtP interfaces: must treat RTA_BRD as peer address 2007-05-17 Andrew J. Schorr * kernel_socket.c: (ifam_read_mesg) Grab RTA_DST and RTA_GATEWAY addresses from the message (if present, which seems unlikely on current BSD platforms), and show them in the debug messages. Also, add ifam_flags to the debug messages. (ifam_read) If the interface is point-to-point, then the RTA_BRD address should be treated as a peer address. commit 2b5cb411cef38c28c0bfba2502f97770d55306b7 Author: Paul Jakma Date: Thu May 10 17:05:16 2007 +0000 [autoconf] Fix missing space character in previous commit commit d46d2a24e997883d9e2623b4de36aa4a08ffc89c Author: Paul Jakma Date: Thu May 10 16:53:04 2007 +0000 [autoconf] GNU_SOURCE can be defined twice, through AC_FUNC_STRNLEN 2007-05-10 Paul Jakma * configure.ac: Use AC_GNU_SOURCE to define _GNU_SOURCE, rather than having lib/zebra.h do it. AC_FUNC_STRNLEN has side-effects with latest autoconf, use AC_CHECK_FUNC on strnlen instead. * lib/zebra.h: Don't try define _GNU_SOURCE, autoconf should do it. commit 6bd1a7bab32b6b077bee687161c43dc0fe82076f Author: Paul Jakma Date: Thu May 10 16:52:26 2007 +0000 [autoconf] add back check for inet_aton 2007-05-10 Paul Jakma * configure.ac: Add back check for inet_aton, which got dropped somehow in previous jumbo patch. commit 5dcf71df9649cf9c7afd26e0fd3772486ab262f6 Author: Paul Jakma Date: Thu May 10 03:00:09 2007 +0000 [ospfd] Fix address qualified 'ip ospf auth' commands 2007-05-09 Milan Kocian * ospf_vty.c: Fix commands: 'ip ospf authentication A.B.C.D', 'no ip ospf authentication A.B.C.D', 'no ip ospf authentication-key A.B.C.D'. Simply fix argv's indexes and argc check in DEFUN functions. commit 6f0e3f6e17687eb25b7b77c4fdc8324837d4700f Author: Paul Jakma Date: Thu May 10 02:38:51 2007 +0000 [autoconf] bugs 162,303,178: Fix 'present but can not be compiled' warnings 2007-05-09 Paul Jakma * configure.ac: sys/conf.h depends on sys/param.h, at least on FBSD 6.2. (bug #363) Should check for in_pktinfo for IRDP 2006-05-27 Paul Jakma * configure.ac: General cleanup of header and type checks, introducing an internal define, QUAGGA_INCLUDES, to build up a list of stuff to include so as to avoid 'present but cant be compiled' warnings. Misc additional checks of things missing according to autoscan. Add LIBM, for bgpd's use of libm, so as to avoid burdening LIBS, and all the binaries, with libm linkage. Remove the bad practice of using m4 changequote(), just quote the []'s in the case statements properly. This should fix bugs 162, 303 and 178. * */*.{c,h}: Update all HAVE_* to the standard autoconf namespaced HAVE_* defines. I.e. HAVE_SA_LEN -> HAVE_STRUCT_SOCKADDR_SA_LEN, * bgpd/Makefile.am: Add LIBM to bgpd's LDADD, for pow(). commit 08d3d5b398ae81de7659509f159e814d1bbd4375 Author: Paul Jakma Date: Mon May 7 16:38:35 2007 +0000 [ospfd] Bug #330 regression: Fix ospf_spf_add_parent assert 2007-05-07 Paul Jakma * ospf_spf.c: (ospf_vertex_new) Dont init vertices to infinity, just let 0 be a special case. (ospf_spf_add_parent) 0 distance candidate vertex is special, cost still to be initialised - asserting that new distance is <= existing only makes sense where w already has a cost. (ospf_spf_next) Infinite cost links should not be followed, bar those of the root. commit fb982c25aa771b7c7425a3c3cce0a2cda0a715de Author: Paul Jakma Date: Fri May 4 20:15:47 2007 +0000 [bgpd] Trim memory usage of BGP routes 2007-05-03 Paul Jakma * bgp_route.h: (struct info) Move less frequently used fields to a lazily allocated struct info_extra. Export bgp_info_extra_get * bgp_route.c: (bgp_info_extra_new) allocate extra (bgp_info_extra_free) Free damp info and the info_extra. (bgp_info_extra_get) Retrieve the info_extra of a struct info, allocating as required. (generally) adjust to use info->extra * bgp_damp.c: (generally) use bgp_info_extra_get to access dampinfo * bgp_attr.h: Move rarely allocated attributes from struct attr to a struct attr_extra, for a substantial saving in size of struct attr. * bgp_attr.c: (bgp_attr_extra_{new,free}), new, self-explanatory. (bgp_attr_extra_get) Get the attr_extra for a given struct attr, allocating it if needs be. (bgp_attr_dup) Shallow copy the struct attr and its attr_extra. (generally) adjust to know about attr->extra. * bgp_debug.c: (bgp_dump_attr) ditto * bgp_vty.c: (show_bgp_memory) print attr and info extra sizes. * bgp_nexthop.c: (generally) adjust to know about attr->extra and info->extra. * bgp_{packet,routemap,snmp,zebra}.c: ditto * lib/memtypes.c: Add MTYPE_ATTR_EXTRA and MTYPE_BGP_ROUTE_EXTRA commit 5921ef9aae3b5d6ff8663298f649fb9d76594acd Author: Paul Jakma Date: Fri May 4 20:13:20 2007 +0000 [zebra] Add zebra_routemap.c * zebra_routemap.c should have been in the commit of Steven's routemap patch. commit 7514fb7739f74311830e9ddd1381d0d228224f61 Author: Paul Jakma Date: Wed May 2 16:05:35 2007 +0000 [zebra] Routemap support on received routes, with 'set src' command (linux) 2007-05-01 David L Stevens * (general) These changes collectively add route-map and prefix-list support to zebra and fix a bug in "show route-map" (with no argument). * doc/main.texi: added route-map, prefix-list, ip protocol and set src documentation * lib/command.h: added PROTOCOL_NODE type * lib/log.c: (proto_name2num) new function, protocol name to number translation. * lib/routemap.c: (vty_show_route_map) fixed "show route-map" without route-map name * lib/routemap.h: added RMAP_ZEBRA type * lib/zebra.h: added proto_name2num() prototype * vtysh/extract.pl.in: added VTYSH_ZEBRA flag for route-map and plist * vtysh/Makefile.am: added zebra_routemap.c * vtysh/vtysh.h: added VTYSH_ZEBRA flag to VTYSH_RMAP * zebra/connected.c: (connected_up_ipv4) added src preference argument to rib_add_ipv4() * zebra/kernel_socket.c: (rtm_read) ditto * zebra/main.c: added prefix list initialization * zebra/Makefile.am: added zebra_routemap.c source file * zebra/rib.h: added generic address union "g_addr" and use in existing places that had an explicit union. Added "src" to struct nexthop. Added preferred src arg to nexthop_ipv4_add and rib_add_ipv4. * zebra/rt_netlink.c: (netlink_routing_table) set preferred source on netlink messages. (netlink_route_change) ditto (netlink_route_multipath) ditto. * zebra/rtread_getmsg.c: (handle_route_entry) added (NULL) src to rib_add_ipv4() call. * zebra/rtread_proc.c: (proc_route_read) ditto * zebra/zebra_rib.c: (nexthop_ipv4_add) add src argument. (nexthop_ipv4_ifindex_add) ditto (rib_add_ipv4) ditto (nexthop_active_check) Add route-map processing. * zebra/zebra_routemap.c: new file for zebra route-map commands. * zebra/zebra_vty.c: (ip_protocol_cmd) Apply route-map to protocol (vty_show_ip_route_detail) added "src" printing (vty_show_ip_route) ditto (show_ip_protocol_cmd) new command, list routemaps. (config_write_protocol) write out routemap protocl config. (zebra_vty_init) Install the new routemap protocol commands. * zebra/zserv.c: (zread_ipv4_add) added (NULL) src arg (zebra_init) init zebra route-maps. * zebra/zserv.h: add zebra_route_map_init commit 5fa05099567bbe42aae87a9bef8fd630b3666a4d Author: Andrew J. Schorr Date: Mon Apr 30 19:14:08 2007 +0000 [build] Improve portability by invoking gcc with -std=gnu99 instead of -std=c99 2007-04-30 Andrew J. Schorr * configure.ac: Change gcc CFLAGS from '-std=c99' to '-std=gnu99' to improve portability. commit f0ec832a78549a85cf4e47d884036c1178f749d3 Author: Andrew J. Schorr Date: Mon Apr 30 16:52:05 2007 +0000 [ospfd] network command now behaves more logically when a peer prefix is defined 2007-04-30 Andrew J. Schorr * ospfd/ospfd.c: (ospf_network_match_iface) Comment out COMPATIBILITY_MODE. Going forward, the ospf "network" command will use a simple test: does the network command prefix contain the connected (destination) prefix of the interface? * doc/ospfd.texi: Add a paragraph to the description of the OSPFv2 network command to explain how we handle interfaces with peer addresses.