summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2004-08-192004-08-19 Paul Jakma <paul@dishone.st>paul
2004-08-19 Paul Jakma <paul@dishone.st> * sockopt.c: include sockopt.h rename some of the _pktinfo_ functions to _ifindex, where that is their purpose. (getsockopt_ipv6_pktinfo_ifindex) renamed to getsockopt_ipv6_ifindex. (setsockopt_ipv4_pktinfo) renamed to setsockopt_ipv4_ifindex (setsockopt_pktinfo) update with previous and add comment re AF_INET portability. (setsockopt_ifindex) generic ifindex function ala setsockopt_pktinfo. (getsockopt_ipv4_pktinfo_ifindex) renamed to getsockopt_ipv4_ifindex. (getsockopt_ipv4_ifindex) rejiggling to reduce repeated ifdef/elses. pktinfo case forgot to set ifindex. (getsockopt_pktinfo_ifindex) renamed to getsockopt_ifindex. update some calls to renamed functions. * sockopt.h: Update renamed exported functions Rename the CMSG_SIZE macros to IFINDEX. Guard IPv4 PKTINFO in a conditional define.
2004-08-192004-08-19 Paul Jakma <paul@dishone.st>paul
* rip_interface.c: (rip_interface_multicast_set) get rid of extraneous if_pointopoint arg. ifp is accessible via connected. pass connected->ifp->ifindex to setsockopt_multicast_ipv4. * ripd.c: (rip_send_packet) update call to rip_interface_multicast_set * ripd.h: update rip_interface_multicast_set prototype
2004-08-19quagga.logrotate: remove generic weekly and nocompress optionspaul
quagga.spec.in: build snmp support, update prequisites ucd-snmp to net-snmp
2004-08-182004-08-18 Paul Jakma <paul@dishone.st>paul
* vty.c: (vty_serv_un) set unix vty socket to nonblocking to prevent inadvertent blocking of daemons by use of vtysh. TODO: disentangle manual paging from the buffer_write path so that unix vty can use this path too and be reliable.
2004-08-172004-08-17 Greg Troxel <gdt@fnord.ir.bbn.com>gdt
* update-autotools: print tools versions to aid people in sending bug reports.
2004-08-15SVN revisions 916-920 from Zebra. ABR support is almost done.hasso
2004-08-11Include padding in control message length.gdt
Inspired by netbsd:src/usr.sbin/rtadvd/rtadvd.c (from KAME).
2004-08-112004-08-11 Greg Troxel <gdt@fnord.ir.bbn.com>gdt
* rtadv.c (rtadv_send_packet): Allocate space for control messages more carefully; it was wrong on NetBSD/sparc where CMSG alignment is to 8 bytes instead of 4, and overwriting the address. Use the provided macros for determining lengths.
2004-08-11Add extra padding in cmsgdata buffer; there wasn't enough ongdt
NetBSD/sparc, resulting in overwriting the address. Add code to check if overwriting is happening, at least for now. Set msg_flags to MSG_DONTROUTE; they had been stack garbage.
2004-08-10I am bored. But I hate questions why there are man pages from version 0.88.hasso
Vtysh man page looks already how it should look IMHO, the rest need more work.
2004-08-06Remove pointless privilege lower call. Thanks to Cougar for noticing.hasso
2004-08-052004-08-04 Paul Jakma <paul@dishone.st>paul
* ospf_spf.c: (ospf_spf_consider_nexthop) Add comment about issue. Compare only against list head - all nexthops must be same cost anyway, fixes a reference-listnode-after-delete bug noted by Kir Kostuchenko. (ospf_nexthop_calculation) Use ospf_spf_consider_nexthop for all candidates attached to root.
2004-08-04SVN revision 907 from Zebra cvs repository.hasso
2004-07-31oops, forgot to update changelog.paul
2004-07-312004-07-31 Christian Hammers <ch@lathspell.de>paul
* snmp.texi: updated (rewritten almost)
2004-07-28enable irdppaul
2004-07-272004-07-27 Paul Jakma <paul@dishone.st>paul
* ospf_packet.c: (ospf_ls_upd_send_queue_event) fix thinko from last fix for ospfd wedging due to oversize LSAs: dont list loop on ospf_ls_upd_queue_send() - guaranteed segfault.
2004-07-27Paul Jakma: forgot an obvious TODOpaul
2004-07-27Paul Jakma: update TODO.. there's plenty.paul
2004-07-272004-07-27 Paul Jakma <paul@dishone.st>paul
* Makefile.am: tests/ must be in dist or building from dist breaks
2004-07-272004-07-27 Paul Jakma <paul@dishone.st>paul
* ospf_opaque.c: (ospf_opaque_lsa_flush_schedule) do not NULL out the LSA as then free_opaque_info_per_id() can never unlock (and free) the LSA. Reported by Gunnar Stigen.
2004-07-262004-07-26 Paul Jakma <paul@dishone.st>paul
* configure.ac: reenable tests/Makefile * tests/Makefile.am: automake file for tests dir * tests/.cvsignore: update
2004-07-23Use ifp->mtu6 in ospf6d and ripngd.hasso
2004-07-23add .libsgdt
2004-07-23(somewhat unrelated cleanups, but all are very minor)gdt
2004-07-23 Greg Troxel <gdt@poblano.ir.bbn.com> * */Makefile.am: Use ../dir/libfoo.la, rather than "-L../dir -lfoo", to avoid linking against installed libraries from a previous version. * {lib,ospfd,ospfclient}/Makefile.am: explicitly define the shared library version number to be 0.0 * configure.ac: remove spurious , so extract.pl is chmod'd +x. * HACKING: explain shared library versioning rules
2004-07-232004-07-23 Greg Troxel <gdt@poblano.ir.bbn.com>gdt
* sockopt.c (getsockopt_ipv4_pktinfo_ifindex): Make this compile on NetBSD, and add comments to make it less confusing. Change the sense of the SUNOS_5 test to make parallel structure between the variables and the code.
2004-07-232004-07-23 Sowmini Varadhan <Sowmini.Varadhan@Sun.COM>paul
* if_ioctl_solaris.c: HAVE_IPV6 ifdef fixups * zserv.c: ditto * ioctl_solaris.c: ditto. * interface.c: cast for LLADDR * interface.h: Add guards, include redistribute.h and remove extraneous definitions of zebra_interface_{up,down}_update * ioctl.h: Add AF_IOCTL define for non SOLARIS_IPV6 * redistribute.h: include dependent header, zserv.h * zserv.h: include dependent header, rib.h
2004-07-232004-07-23 Paul Jakma <paul@dishone.st>paul
* irdp_main.c: use setsockopt_pktinfo_ipv4 * irdp_packet.c: use SOPT_SIZE_CMSG_PKTINFO_IPV4 and getsockopt_pktinfo_ifindex()
2004-07-23Update cvsignore, add .libspaul
2004-07-232004-07-23 Paul Jakma <paul@dishone.st>paul
* ospf6_main.c: Delete LOG_PERROR, not portable. * ospf6_network.c: (ospf6_set_pktinfo) use setsockopt_ipv6_pktinfo
2004-07-232004-07-23 Paul Jakma <paul@dishone.st>paul
* ospf_network.c: Replace PKTINFO/RECVIF with call to setsockopt_pktinfo * ospf_packet.c: Use getsockopt_pktinfo_ifindex and SOPT_SIZE_CMSG_PKTINFO_IPV4.
2004-07-232004-07-23 Paul Jakma <paul@dishone.st>paul
* sockopt.h: Add SOPT_SIZE_CMSG_PKTINFO{_IPV{4,6}} define, for sizeof pktinfo as appropriate, to be used when allocating msg buffers. export setsockopt_pktinfo() and getsockopt_pktinfo_ifindex() * sockopt.c: (setsockopt_pktinfo_ifindex) new function to portably set received ifindex sock option. (getsockopt_pktinfo_ifindex) portably retrieve ifindex. (getsockopt_cmsg_data) retrieve indicated control info from message header. (getsockopt_ipv6_pktinfo_ifindex) ipv6 version of above. (setsockopt_ipv4_pktinfo) v4 version (setsockopt_pktinfo) the exported version (getsockopt_ipv4_pktinfo_ifindex) v4 specific version (getsockopt_pktinfo_ifindex) the exported version
2004-07-222004-07-14 Paul Jakma <paul@dishone.st>paul
* sigevent.c: (quagga_signal_handler) add a global caught flag, set the flags to a constant rather increment to be kinder. (quagga_sigevent_process) new function, to do core of what quagga_signal_timer did. dont block signals at all as sig->caught is volatile sig_atomic_t and should be safe to access from signal and normal contexts. The signal blocking is unneeded paranoia, but is left intact under an ifdef, should some platform require it. Check global caught flag before iterating through array. (quagga_signal_timer) nearly everything moved to quagga_sigevent_process. Left in under ifdef, in case some platform could use a regular timer check for signals. * sigevent.h: quagga_sigevent_process declaration. * thread.c: (thread_fetch) check for signals at beginning of scheduler loop, check for signals if select returns EINTR.
2004-07-222004-07-22 Paul Jakma <paul@dishone.st>paul
* configure.ac: modify default CFLAGS to be compiler agnostic build Makefile for tests/ subdir.
2004-07-202004-07-20 Paul Jakma <paul@dishone.st>paul
* redhat/quagga.spec.in: update for shared lib install, *.la should be in -devel
2004-07-172004-07-17 Paul Jakma <paul@dishone.st>paul
* if.c: (if_cmp_func) Add comment suggested by Greg Troxel.
2004-07-142004-07-14 Paul Jakma <paul@dishone.st>paul
* ospf_packet.c: (ospf_ls_upd_send_queue_event) Partial fix for problem reported by Peter Frost amongst others, where function will spin indefinitely if update list contains LSAs greater than MTU-headers or other condition leading to update list never being cleared. Problem of what to do with these LSAs remains. (ospf_make_ls_upd) add comment about large LSA problem, indentation cleanup.
2004-07-142004-07-14 Greg Troxel <gdt@poblano.ir.bbn.com>gdt
* Makefile.am (EXTRA_DIST): Add missing \, so tools stuff is really in distfile.
2004-07-13004-07-13 David Wiggins <dwiggins@bbn.comgdt
* kernel_socket.c (rtm_flag_dump): terminate buffer with '\0', not '0'. This is arguably not a security problem, since strlcat is used to copy to the buffer -gdt.
2004-07-132004-07-13 Greg Troxel <gdt@poblano.ir.bbn.com>gdt
* sigevent.c: Don't block SIGTRAP and SIGKILL. Blocking SIGTRAP confuses gdb, at least on NetBSD 2.0_BETA, where the block succeeds.
2004-07-13Creating irdp socket requires more privileges.hasso
2004-07-121) extract.pl is braindead, but I will not touch it willingly.hasso
2) Following common style is always better anyway.
2004-07-09Merge svn revision 855 from Zebra repository.hasso
2004-07-09cvsignore *.libs in build dirspaul
2004-07-092004-07-09 Paul Jakma <paul@dishone.st>paul
Merge of GNU Zebra cvs2svn changesets r799, r800 and r807. * bgp_dump.c: (bgp_dump_attr) cleanup. return status code. check attributes present before printing. * bgp_dump.c: update bgp_dump_attr prototype. * bgp_packet.c: (bgp_update_receive) init attrstr. check status of bgp_dump_attr. Log end-of-rib UPDATEs.
2004-07-092004-07-09 Paul Jakma <paul@dishone.st>paul
* jhash.{c,h}: New files. Bob Jenkins' public domain hashing function, as implemented in linux kernel by David Miller.
2004-07-092004-07-09 Paul Jakma <paul@dishone.st>paul
* Merge Kunihiro's 'show route-map' change and add compatibility aliases for route-map continue
2004-07-09more cvsignorespaul
2004-07-09Update cvsignore's for *.lo and *.la - libtool filespaul
2004-07-092004-07-09 Juris Kalnins <juris@mt.lv>paul
* if.c: (if_cmp_func) fix for interface names where name is same, but one has no number, eg "devtyp" and "devtyp0".