summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* add some /* XXX assert() */ for questionable assumptions (no codegdt2004-02-131-0/+4
| | | | change - just notes to others).
* 2004-01-19 Paul Jakma <paul@dishone.st>paul2004-01-191-2/+3
| | | | | | | * tests/test-sig.c: New file, regression test for sigevents. * lib/Makefile.am: add sigevent.{c,h} * (isis|rip|ripng|ospf|ospf6|bgp)d/\1_main.c: modify for sigevents. * zebra/main.c: ditto.
* 2004-01-19 Paul Jakma <paul@dishone.st>paul2004-01-193-0/+201
| | | | | * sigevent.{c,h}: New files, implement event handled signals. see signal_init() in sigevent.h.
* Explain the dual use of struct prefix for CIDR prefixes andgdt2004-01-132-3/+27
| | | | address/netmask pairs, and clarify the two comparison functions.
* Add comments about isisd integration.jardin2003-12-231-0/+4
|
* Merge isisd into the Quagga's framework:jardin2003-12-2310-2/+106
| | | | | | | | | | - add privs support - use misc quagga's definitions - make it compile"able" - fix segfault cases related to hostname() - add debug isis xxx command This patch has been approved by Paul Jakma.
* Reorder free(f); unlink(f); to unlink before freeing.import_isisd_sf_20031223gdt2003-12-222-2/+7
|
* 2003-12-22 Christian Hammers <ch@lathspell.de>gdt2003-12-224-3/+41
| | | | | | * configure.ac (and everywhere a regular file is opened for writing): use file permissions from configure rather than compiled-in umask.
* Revert my "microfix". It was caused by misreading code. Gilad is right ashasso2003-12-221-6/+1
| | | | always.
* note that order of = items is undefined, probablygdt2003-12-221-0/+4
|
* comments about struct listgdt2003-12-221-0/+5
|
* add comments clarifying the operation of listnode_add_sortgdt2003-12-221-1/+7
|
* lib/if.c part from [quagga-dev 552] and lib/inklist.c part from [quagga-devhasso2003-12-212-8/+5
| | | | 555]. Okayed by Paul.
* {lib,ospfd,ospfapi}/Makefile.am:gdt2003-12-081-1/+1
| | | | | Use pkginclude_HEADERS rather than include_HEADERS to place includes in ${prefix}/include/quaggainstead of polluting ${prefix}/include.
* 2003-10-30 sowmini.varadhan@sun.compaul2003-10-301-2/+4
| | | | * lib/pid_output.c: (pid_output_lock) undo paulj's mindless edit.
* 2003-10-29 Paul Jakma <paul@dishone.st>paul2003-10-291-95/+110
| | | | | | | | | | * lib/routemap.c: (route_map_apply_index) renamed to route_map_apply_match. (route_map_apply_match) Take rule list as argument rather than index. concentrate solely on match logic. (route_map_apply) Properly implement the route map statement logic, according to the table, especially the on-match exit policy.
* 2003-10-27 Paul Jakma <paul@dishone.st>paul2003-10-272-25/+0
| | | | | * lib/if.{ch}: remove ifc_pointtopoint() - left over from the reverted RFC3021 patch.
* 2003-10-26 Paul Jakma <paul@dishone.st>paul2003-10-261-2/+1
| | | | | * lib/vty.c: (vty_read) additional change i had applied to Jay's telnet sub-option processing crash fix was incorrect, revert.
* 2003-10-24 Paul Jakma <paul@dishone.st>paul2003-10-241-1/+1
| | | | | | | | | * configure.ac: Check for fcntl() * {bgpd,ospf,ospf6d,ripd,ripngd}/Makefile.am: Install conf file via regular automake means, not magic install incantations, see bug #38. * lib/Makefile.am: install the headers, needed to link libzebra.a (and hence libospf.a, OSPF-API, etc.)
* 2003-10-24 sowmini.varadhan@sun.compaul2003-10-241-15/+24
| | | | | | | * lib/pid_output.c: (pid_output) call pid_output_lock if we have fcntl(). (pid_output_lock) grab exclusive write lock on pid file, rather than rely on (fragile) exclusive create.
* 2003-10-22 Paul Jakma <paul@dishone.st>paul2003-10-221-1/+5
| | | | | | * lib/zebra.h: include limits.h if its there, its a portable header and useful and not just solaris specific. net/route.h is also useful.
* 2003-10-22 Paul Jakma <paul@dishone.st>paul2003-10-221-6/+7
| | | | * lib/vty.c: cleanup getcwd again. just pass the buffer in to getcwd.
* 2003-10-22 Paul Jakma <paul@dishone.st>paul2003-10-221-3/+3
| | | | | * lib/regex.c: bzero -> memset * zebra/ioctl.c: ditto. bzero is not portable.
* 2003-10-15 Jay Fenlason <fenlason@redhat.com>paul2003-10-151-6/+11
| | | | | | | | * lib/vty.c: (vty_telnet_option) Remote DoS exists if a telnet end-sub-negotation is sent when no sub-negotation data has been sent. Return immediately if no sub-negotation is in progress. (vty_read) do not attempt to process options if no sub-negotation is in progress.
* 2003-10-15 Paul Jakma <paul@dishone.st>paul2003-10-151-2/+8
| | | | | | | * lib/vty.c: (vty_save_cwd) dont crash if getcwd fails. try fallback to SYSCONFDIR. Allocate cwd from the stack rather than relying on (non-portable) getcwd() allocation (which we didnt seem to be freeing).
* 2003-10-13 Jay Fenlason <fenlason@redhat.com>paul2003-10-131-0/+5
| | | | | | | | | * lib/zebra.h: define UINT32_MAX for those systems which do not provide it. * bgp_attr.h: define BGP_MED_MAX. * bgp_route.c: update defines/constants to BGP_MED_MAX. * bgp_routemap.c: ditto. clean up route_match_metric_compile slightly to avoid unneccesary XMALLOC.
* 2003-09-29 Paul Jakma <paul@dishone.st>paul2003-09-291-13/+21
| | | | | | | | | | | | | | * zebra/connected.c: revert the 'generic PtP' patch as it causes far too many problems. People who use FreeSWAN should investigate native linux ipsec. * zebra/rt_netlink.c: ditto * lib/if.c: ditto * ripd/ripd.h: ditto * ripd/ripd.c: ditto * ripd/rip_interface.c: ditto * ospfd/ospfd.c: ditto * ospfd/ospf_snmp.c: ditto * bgpd/bgp_nexthop.c: ditto
* 2003-09-24 Paul Jakma <paul@dishone.st>paul2003-09-242-4/+5
| | | | | | | | | | | | | * lib/version.h: moved to version.h.in * lib/version.h.in: New file, from version.h. Change hardcoded package name and version to use the autoconf defined substition variables. * configure.ac: Fix up AC/AM_INIT* to new style. Remove the sed'ing through lib/version.h for VERSION. Add lib/version.h to the AC_OUTPUT list. Update the text output of quagga version at end of configure run to use PACKAGE_VERSION. * doc/.cvsignore: ignore quagga.pdf * doc/.cvsignore: ignore version.h, its now autogenerated.
* 2003-09-24 sowmini.varadhan@sun.compaul2003-09-231-2/+6
| | | | | * lib/linklist.c: (if_cmp_func) Fix handling of case where list->cmp returns 0.
* 2003-09-24 sowmini.varadhan@sun.compaul2003-09-231-1/+6
| | | | | * lib/if.c: (if_cmp_func) fix infinite loop if ifp1->name == ifp2->name
* 2003-08-27 Jay Fenlason <fenlason@redhat.com>paul2003-08-271-1/+1
| | | | | * lib/Makefile.am: Do not use a lib (libcap) as a dependency * zebra/Makefile.am: Link in libcap
* 2003-08-25 Paul Jakma <paul@dishone.st>quagga_0_96_2_releasepaul2003-08-251-1/+1
| | | | | * configure.ac: bump version-> 0.96.2 * lib/version.h: bump version, ditto.
* 2003-08-20 Yasuhiro Ohara <yasu@sfc.wide.ad.jp>paul2003-08-212-10/+19
| | | | | * command.c: Fix <cr> display problem for command line description.
* 2003-08-14 Paul Jakma <paul@dishone.st>paul2003-08-141-1/+1
| | | | * lib/version.h: bump to 0.96.1.
* 2003-08-13 Paul Jakma <paul@dishone.st>paul2003-08-133-2/+4
| | | | | | | * lib/version.h: Add QUAGGA_PROGNAME * lib/smux.c: hardcoded zebra/quagga -> QUAGGA_PROGNAME * lib/command.c: ditto * vtysh/vtysh_user.c: ditto
* 2003-08-13 Paul Jakma <paul@dishone.st>paul2003-08-131-1/+1
| | | | * lib/smux.c: change progname to quagga.
* 2003-08-12 Paul Jakma <paul@dishone.st>paul2003-08-125-7/+7
| | | | | | | | | | | | | | | | | | | | 2003-08-12 Paul Jakma <paul@dishone.st> * Makefile.am: redhat/zebra.* -> redhat/quagga.* * configure.ac: Bump autoconf prerequisite to 2.53. dist name zebra -> quagga. general Zebra -> Quagga where appropriate (ie not zebra daemon). User and group zebra->quagga. s/ZEBRA\(_VERSION\)/QUAGGA\1/. * bgpd/bgp_main.c: s/ZEBRA\(_VERSION\)/QUAGGA\1/ * lib/command.c: Update banners and s/ZEBRA\(_VERSION\)/QUAGGA\1/ * lib/print_version.c: ditto * lib/version.h: s/ZEBRA\(_VERSION\)/QUAGGA\1/ and bump version. Change ZEBRA_URL. * lib/smux.c: s/ZEBRA\(_VERSION\)/QUAGGA\1/ * lib/vty.h: Change Zebra.conf to Quagga.conf (integrated file) * ospf6d/ospf6{,_main}.c: s/ZEBRA\(_VERSION\)/QUAGGA\1/ * ospfd/ospf_main.c: s/ZEBRA\(_VERSION\)/QUAGGA\1/
* 2003-08-12 Paul Jakma <paul@dishone.st>paul2003-08-121-0/+2
| | | | | * lib/linkhist.h: The LISTNODE_{ADD,DEL} macros (not used anywhere) do not maintain the list count - fix.
* 2003-08-01 Cougar <cougar@random.ee>paul2003-08-013-16/+61
| | | | | | | | | | | | | | * lib/if.c: (if_cmp_func) new function, compare interface names in alphabetical order. (if_create) Take name as argument and add interface in sorted order. (if_get_by_name),(interface_cmd) fixup calls to if_create - see above. (if_init) register list comparison function. * lib/if.h: Add comparison function, modify if_create prototype. * lib/zclient.c: Modify call to if_create. * ospfd/ospf_interface.c: (ospf_vl_new) modify call to if_create. change sprintf to snprintf. * zebra/kernel_socket.c: (ifm_read) modify call to if_create.
* 2003-07-26 Paul Jakma <paul at dishone.st>paul2003-07-261-2/+173
| | | | | | * lib/command.c: Add config_log_syslog_facility_cmd, to set syslog facility. This was a commit to zebra.org on May 20, merge in to zebra-pj.
* 2003-07-26 Paul Jakma <paul@dishone.st>paul2003-07-261-1/+1
| | | | | | * lib/command.c: Add config_log_syslog_facility_cmd, to set syslog facility. This was a commit to zebra.org on May 20, merge in to zebra-pj.
* 2003-07-15 Paul Jakma <paul@dishone.st>paul2003-07-152-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | * lib/version.h: add ZEBRA_URL (unused for now) * lib/vty.c: CMD_ERR_NOTHING_TODO when reading conf file should not be fatal. slight reformating. * ospfd/ospf_zebra.c: ignore reject/blackhole routes if zebra sends these type of routes. probably should be a new type of route to allow daemons to more easily choose whether to redistribute them - rathen than just a flag (eg for reject/blackhole). reorder the is_prefix_default test for ZEBRA_IPV4_ROUTE_DELETE to avoid the inverted test - slightly more readable. * redhat/zebra.spec.in: Add ospfapi port to services file, if with_ospfapi. * zebra/rib.h: Change nexthop types to an enum. * zebra/rt_netlink.c: run it through indent -nut. Add nexthop_types_desc[] descriptive array for nexthop types. (netlink_route_multipath) debug statements indicate which branch they are in and print out nexthop type. * zebra/zebra_rib.c: slight reformatting. * zebra/zebra_vty.c: Pass ZEBRA_FLAG_BLACKHOLE flag to static_add_ipv4() if Null0 route is configured. print out Null0 if STATIC_IPV4_BLACKHOLE route, and ignore flags (shouldnt be possible to set flags from vty) for config and show route.
* 2003-07-11 Vsevolod Sipakov <zebra@vs.megalink.ru>paul2003-07-111-0/+12
| | | | | * lib/command.c: Add missing HAVE_IPV6 defines. see bug id #23: http://bugzilla.dishone.st/show_bug.cgi?id=23
* 2003-07-8 Chris Andrews <chris@nodnol.org>paul2003-07-081-0/+3
| | | | | | | * zebra/kernel_socket.c: Update for new zebrad global struct * zebra/ipforward_solaris.c: Add missing privs.h include. Uncomment /dev/ip define. * lib/zebra.h: Add typedefs for SunOS.
* 2003-06-19 Paul Jakma <paul@dishone.st>paul2003-06-192-5/+11
| | | | | * Fix lib/smux.c's reliance on daemons exporting struct thread_master *master.
* 2003-06-15 Paul Jakma <paul@dishone.st>paul2003-06-153-6/+13
| | | | | | | | * lib/vty.{c,h}: Remove vty layer depending on a 'master' global, pass the thread master in explicitly to vty_init. Sort out some header dependency problems with lib/command.h * zebra/: Move globals to struct zebrad. Update vty_init(). * (.*)/\1_main.c: update call to vty_init().
* 2003-06-11 Paul Jakma <paul@dishone.st>paul2003-06-111-14/+21
| | | | | | * lib/privs.h (zprivs_init): do not use zlog() as it depends on vty having been initialised (zlog calls vty_log). print to stderr directly instead.
* 2003-06-07 Paul Jakma <paul@dishone.st>paul2003-06-063-60/+16
| | | | | * Revert Cougar's sort interface names patch, causes problems with enabling of interfaces for OSPF in ospfd.
* Patch from Cougar - sort iflist by name.hasso2003-06-053-16/+60
|
* Paul forgot probably to commit privs.[c|h] changes. Had to reorder includeshasso2003-06-043-44/+86
| | | | in zebra.h to make it compile in debian.