summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Convert ospf6d over to quagga_gettime() wrappers.Takashi Sogabe2009-06-2210-25/+25
|
* [bgpd] Fix 'update-source' command: It doesn't accept interface namesPaul Jakma2009-06-221-2/+2
| | | | | | * bgp_vty.c: BGP_UPDATE_SOURCE_STR define should only specify IP addresses, the underlying mechanisms won't do anything useful with interface names. Fix bug #527.
* [ospfd/BSD] add missing UINT16_MAX - picked up from FreeBSD ports patchJeremy Jackson2009-06-191-0/+2
| | | | | | | | | | | Should probably have AC_TYPE_UINT16_T in configure.ac to make it really clean... and a fresh import of gnulib, the existing copy of gnulib seems to be manually put some stuff in zebra.h. I'm leaving that alone for now, since a fresh import will probably clean up a lot of cruft and it would be a duplicated effort to fix some things now. The FreeBSD port 0.99.11_1 files/patch-ospfd-ospfd.h can probably go away after this is applied.
* [configure] fix check for GNU awk/gawk to abort ./configure if missingJeremy Jackson2009-06-191-3/+5
| | | | | | | | It also prints what were comments explaining why gawk is necessary, and not-in-PATH to help user figure out why it's not found. Build was mysteriously failing with the old version of this check when gawk wasn't installed.
* [cleanup] convert bzero() deprecated by POSIX to memset()Jeremy Jackson2009-06-193-3/+3
| | | | | autoscan 2.62 complains about bzero(), so a good fix nowadays is to just replace it.
* [configure] remove unused/broken autoconf cache variable ac_statedirJeremy Jackson2009-06-191-6/+5
| | | | | | | It wasn't used, and the code wasn't printing progress or the result in some cases. the test uses minimal resources, so it's probably better to not cache so as to avoid inconsistencies if --with-prefix or directory variables are changed between ./configure runs.
* [configure/cleanup] fix broken autoconf cache variablesJeremy Jackson2009-06-191-29/+22
| | | | | | | | | | | | | | | | | Fix zebra_rtread and zebra_ipforward_path. It looks like someone tried to make this cached, but it was being ignored at least on autoconf 2.6.1. 2.6.2 now gives a warning about the situation, hence this fix. Although they are just warnings, it's dangerous to leave them as-is, because someone not diligent in reading the autoconf manual might just stick _cv_ in the name, with the effect that running a ./configure --config-cache would fail horribly, since variables are being set inside the AC_CACHE_CHECK() block that would not be seen when the variable's value was read from cache. Also added m4 quotes [] to macro arguments as autoconf manual suggests.
* [configure] remote support for AIX, it conflicts on newer autoconfJeremy Jackson2009-06-191-1/+0
| | | | | | | | AC_AIX and AC_GNU_SOURCE conflict > autoconf 2.53 or so, but the replacement AC_USE_SYSTEM_EXTENSIONS isn't available until later versions. So either we narrow the supported autconf version range, or disable AIX (if it has any effect), or determin that AC_AIX doesn't do anything useful anyhow.
* [build] cleanup low-hanging autoreconf warningsJeremy Jackson2009-06-192-17/+18
| | | | | | | | | Some uses of GNU make extensions were not necessary. There are still some, but they might exist as workarounds for older versions of autoconf that have since been solved. Lesson learned: implicit target rules have opposite order to pattern target rules.
* [configure] add configure support for PCRE Posix libraryJeremy Jackson2009-06-193-9/+30
| | | | | | | | | Debian tried unsuccessfully to build with libpcreposix. This adds proper support to autoconf/configure.ac for it. Based on the patch by C.J. Adams-Collier in bug #483. bgpd/bgp_{regex,routemap}.h: Pull in PCRE POSIX header if available.
* [daemons/cleanup] Remove disabled log_mode argument support.Jeremy Jackson2009-06-184-21/+5
| | | | | * */*main.c: Seems that the actual code was removed previously, but the argument processing code remained.
* [doc] Removes documentation of nonexistant option.Jeremy Jackson2009-06-183-9/+0
| | | | Expansion of Ubuntu quagga-0.99.11-1 30_doc__ospfd.8__nolog.dpatch
* [configure] Refine CLOCK_MONOTONIC testPaul Jakma2009-06-182-9/+25
| | | | | | | * configure.ac: Check for the actual CLOCK_MONOTONIC symbol, as clock_gettime need not imply that clock type is supported * lib/zebra.h: use the method given in autoconf docs for sys/time.h inclusion
* [configure] Detect support for monotonic clockStephen Hemminger2009-06-181-0/+10
| | | | | | Quagga has code to support monotonic clock to avoid issues where time of day changes. The support was incomplete since it was not being detected by autoconf.
* [BGP/cleanup] make message list in bgp_open constStephen Hemminger2009-06-181-4/+6
|
* [BGP/cleanup] make community hash table staticStephen Hemminger2009-06-181-1/+1
|
* [BGP/cleanup] make some damp function staticStephen Hemminger2009-06-182-5/+4
|
* [BGP/cleanup] make ecommunity variables/functions localStephen Hemminger2009-06-182-3/+2
|
* [BGP/cleanup] main program cleanupStephen Hemminger2009-06-181-7/+11
| | | | | Check result of daemon() call to fix warning Make local variables static
* [zebra/cleanup] make message table read onlyStephen Hemminger2009-06-181-1/+1
|
* [OSPF/cleanup] make message lists read onlyStephen Hemminger2009-06-183-23/+23
|
* [bgpd/cleanup] make message lists read onlyStephen Hemminger2009-06-182-16/+16
|
* [bgpd] add comment that bgp_capability_receive is exported for unit-testsPaul Jakma2009-06-181-1/+4
|
* [cleanup] Allow message tables to be constantStephen Hemminger2009-06-182-2/+2
| | | | | Avoid bugs, and improve cache locality by allowing message lists to be read/only.
* [cleanup] Fix compile warningsStephen Hemminger2009-06-181-4/+5
| | | | Fix printf format warning and make capability table 'const static'
* [cleanup] Use const in smux interfaceStephen Hemminger2009-06-182-10/+11
| | | | smux_trap and oid_copy should allow read-only source.
* [bgpd/cleanup] BGP make attribute variables localStephen Hemminger2009-06-181-5/+5
| | | | | Message lists can be read-only, and hash tables are local to this code.
* [bgpd/cleanup] Make BGP FSM table read-only staticStephen Hemminger2009-06-181-1/+1
| | | | The finite state machine table is immutable.
* [bgpd] reference count the BGP instanceStephen Hemminger2009-06-183-19/+47
| | | | | | | | | | | | | | | | When a BGP instance is deleted with lots of routes and neighbors it is possible for the peer rsclient queue to run after bgp_delete has been called. This would lead to bgpd crashing, see https://bugzilla.vyatta.com/show_bug.cgi?id=3436 The fix is to add reference counting to the BGP instance and defer actual freeing until all references are gone. This patch also fixes a memory leak where the self-reference peer instance was being created but never freed. The check in bgp_clear_route is no longer valid because it is possible for it to be called when peer is in Deleted state during cleanup.
* [bgpd] Make declarations matchStephen Hemminger2009-06-181-2/+2
| | | | These variables are const.
* [zebra] Remove unused structure elementStephen Hemminger2009-06-181-3/+0
|
* [zebra] Force rib_update when connected route deletedStephen Hemminger2009-06-181-0/+4
|
* [cleanup] Use correct buffer size for inet_ntop()Stephen Hemminger2009-06-183-23/+25
| | | | | Don't need big buffer 1024 to hold IPV4 (INET_ADDRSTRLEN) or IPv6 (INET6_ADDRSTRLEN) message.
* [ripd] Ignore non-running interfaces in rip statusStephen Hemminger2009-06-181-0/+3
| | | | Vyatta Bug 3999
* [lib] Put symbolic backtrace on system logStephen Hemminger2009-06-181-6/+15
| | | | When BGP crashes, sometimes all we get to see is syslog.
* [lib] sockopt_tcp_signature: sin6 requires HAVE_IPV6Stephen Hemminger2009-06-181-0/+2
| | | | | An external user was building on system without IPv6 and it wouldn't work.
* [ospf6d] Remove 'no router' from OSPF6_NODEStephen Hemminger2009-06-181-1/+0
| | | | Don't need command twice.
* [ospf6d] Fix ospf6d crash if removing interface with no areaJon2009-06-181-0/+7
| | | | | | ospf6d will crash if attempting to remove interface when no areas have been defined Check if any areas have been defined. Should prevent use of empty pointer.
* [ospf6d] Fix ospf6d crash in show border routersJon2009-06-181-0/+6
| | | | | | ospf6d will crash if this command is executed on a non-border-router. Included test to verify that any routes are defined, preventing empty pointer from being used.
* [ospf6] Add no router ospf6Jon2009-06-181-0/+1
| | | | | | Suggestion: Makes no sense to me that the statement to remove ospf6 configuration is located in OSPF6D_NODE. Moved to CONFIG_NODE next to matching define command.
* [ospf6d] Fix ospf6d crash if range defined twiceJon2009-06-181-0/+6
| | | | | | ospf6d will crash if the same range is defined twice. There was no check if the same range had previously been defined, thereby causing a later assert to fail.
* [ospfd] Fix OSPF route refcount leakStephen Hemminger2009-06-181-1/+2
| | | | | This may fix vyatta BUG 3096. The reference count for OSPF route table was never completely freed on deleting all neighbors.
* [zebra] Only announce connected routes if link is detectedStephen Hemminger2009-06-181-1/+1
| | | | | Need to check both IFF_UP and IFF_RUNNING if link-detect is enabled, before announcing routes.
* [zebra] MTU is unsignedStephen Hemminger2009-06-181-1/+1
| | | | | The MTU data in the netlink message is always unsigned 32 bits. Don't use integer.
* [zebra] remove incorrect debug messageStephen Hemminger2009-06-181-2/+0
|
* [zebra] Cleanup meta-queue codeStephen Hemminger2009-06-181-64/+70
| | | | | | | | Do some cleanup work on recently added meta-queue code: * use table rather than switch * indent with quagga standard indentation * since meta_queue_new is only used at initialization allocation failure should be fatal.
* [zebra] netlink interface minor cleanupStephen Hemminger2009-06-182-7/+4
| | | | Add more prototypes and make some functions static
* [zebra] Fix vyatta bug 2814: Add "show ip route summary" command.Stig Thormodsrud2009-06-181-35/+86
|
* [vtysh] Add a --noerror optionStephen Hemminger2009-06-181-7/+18
| | | | | There are times that configuration scripts want to run vtysh but don't want to get error messages or failed exit status
* [vtysh] Return non-zero exit code on error.Stephen Hemminger2009-06-181-1/+2
| | | | If passed a bad command, return non-zero exit code