OpenSourceRouting
  1. OpenSourceRouting

quagga-capn-temp

Public
AuthorCommitMessageCommit dateIssues
Donald SharpDonald Sharp
eae18d16fefzebra: Fix solaris build issueThe number of parameters to rib_add_ipv4 has been increased. Submitter of original patch failed to modify solaris code path. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
0d27129ac5fzebra: Fix non usage of VRF_DEFAULTA vrf_id was being set to 0 instead of VRF_DEFAULT Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Paul JakmaDonald SharpPaul Jakma
64e0ac29ddcbgpd: Implicit updates in BGP may require a withdrawal from zebra RIB* J Yu <jackiesyu@hotmail.com> noted a problem with bgpd of routes not having their nexthop updated correctly. Martin Winter <mwinter@opensourcerouting.org> pinned this down to the case where a BGP route is updated from one with a valid nexthop to an invalid next-hop, using a test tool. Once the problem occurs, the incorrect route may remain, even after further UPDATEs, so long...
Donald SharpDonald Sharp
76764ddcf53isisd, lib: Fix some more compiler warningsA couple compiler warnings snuck in from the last round of work being looked at. This cleans them up Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
642577340cfzebra: Cleanup RTADV defineThe RTADV define was not being set correctly or consistently. Make the code consistent with our HAVE_IPV6 define. If the user wants to explicitly turn it off then they should run --disable-rtadv from the configure cli Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
8253b73c3c7isisd: make send_lsp more robustSigned-off-by: Christian Franke <chris@opensourcerouting.org> Tested-by: NetDEF CI System <cisystem@netdef.org>
Christian FrankeDonald SharpChristian Franke
812f282cc1bisisd: fix misleading wording in logThe changed messages are actually located before transmission is attempted. Therefore, the tense is somewhat misleading, especially since transmission may not always succeed. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
80d6b4e3e63isisd: handle lsp confusion (ISO/IEC 10589:2002 7.3.16.2)Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
e28718a8bffisisd: fix IPv6 mask applicationSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
cb32a19d143isisd: show interface's ipv6 addresesSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
ec87416a104isisd: provide more detailed log for failed address removalSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
acf9865f7fcisisd: add support to import routes from other protocolsSigned-off-by: Christian Franke <chris@opensourcerouting.org>
Christian FrankeDonald SharpChristian Franke
9dfcca6122cisisd: fix assertion in LSP refresh timer calculationSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
61010c33fd7isisd: add a slight delay to lsp_regenerate_scheduleisisd implements a holdoff interval and will refrain from regenerating an lsp if the difference between the current time and its last refresh is less than the holdoff interval. Instead, it will schedule a timer to regenerate the lsp after the holdoff interval has passed. This implementation has one disadvantage in the case where there is a succession of calls to lsp_regenerate_schedule. In suc...
Christian FrankeDonald SharpChristian Franke
80a8f726546isisd: add a debug mode that traces LSP constructionSigned-off-by: Christian Franke <chris@opensourcerouting.org>
Christian FrankeDonald SharpChristian Franke
749e87a0731isisd: purge on correct levelSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
f1fc1db703cisisd: allow to adjust lsp-mtuSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
7324ae1f0daisisd: initialize circuit to match area is_typeNew circuits should be initialized to match the is_type of their area. Also add an additional check to make sure that no IIHs are sent for levels which are not enabled. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
912aac4f670isisd: do remove ipv6 routes from ZebraWe can abort isis_zebra_route_del_ipv6 if the route in question has ISIS_ROUTE_FLAG_ZEBRA_SYNCED unset, meaning it's not in the kernel. Aborting the function if the flag is set prevents us from removing any routes. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
f35169ecdb4isisd: don't corrupt memory for long hostnamesSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
b461630bed1isisd: fix a typo in a log messageSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
390f16ee4e5isisd: remove superfluous checks after XMALLOC etc.Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian FrankeDonald SharpChristian Franke
77277a14098isisd: annotate some function arguments with constSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
abfd40d6820lib: don't have log functions change errnoSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Alexis FasquelDonald SharpAlexis Fasquel
dbe99e0c407bgpd: Update dump to allow Extended Time FormatAllow the bgp dump functionality to handle the Extended Time format as specified in RFC 6396. Fixes a segmentation fault with multiple dump rules as well. Signed-off-by: Alexis Fasquel <alexis@pch.net> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
76fbc64c5d8lib: add function to get precise remaining time of timer threadSigned-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Christian FrankeDonald SharpChristian Franke
1ca8d40f996ripd, isisd: fix warnings that make the build failThese issues have been found by running buildtest.sh using GCC 5.2.0 and Clang 3.7.0 Fixes pointer checks that can never be null Signed-off-by: Christian Franke <chris@opensourcerouting.org> Tested-by: NetDEF CI System <cisystem@netdef.org> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
c1900e09a7fzebra: Fix change of distance on ipv6 route creating duplicate routesIf you enter: ipv6 route 2002:44:44:44::44/128 swp1 4 ipv6 route 2002:44:44:44::44/128 swp1 99 You get: host-111# show ipv6 route Codes: K - kernel route, C - connected, S - static, R - RIPng, O - OSPFv6, I - IS-IS, B - BGP, A - Babel, T - Table, > - selected route, * - FIB route S 2002:44:44:44::44/128 [99/0] is directly connected, swp1 S>* 2002:44:44:44::44/128 [4/0] is directly connected,...
Donald SharpDonald Sharp
949b719eac0zebra: Combine static_uninstall_ipv[4|6] into one functionSigned-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
a979ab70e0ezebra: combine static_ipv[4|6]_nexthop_same into one functionCombine the static_ipv[4|6]_nexthop_same into static_nexthop_same. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
9bcdd1a252bzebra: Combine static_install_ipv[4|6]Combine the static_install_ipv[4|6] function calls into static_install_route. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
0d955affd51zebra: Remove HAVE_IPV6 from rib.h and zebra_rib.cSigned-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
d4c27d656d0zebra: Collapse struct static_ipv[4|6] into struct static_routeThe 'struct static_ipv4' and 'struct static_ipv6' structures are essentially the same. Collapse them into one data structure 'struct static_route'. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Timo TeräsDonald SharpTimo Teräs
b11f3b54c84zebra: implement per-route mtu handlingThis commits allow overriding MTU using netlink attributes on per-route basis. This is useful for routing protocols that can advertice prefix specific MTUs between routers (e.g. NHRP). Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Timo TeräsDonald SharpTimo Teräs
7eb6136b273zebra: make ZEBRA_FLAG_CHANGED internal statusThis flag is used internally in zebra only. And it makes no sense to expose it over the zclient API, as having it set from client could corrupt the internal state. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
929a26a7cf8lib: Memory reporting fails over 2GBThe old style mallinfo() function uses an 'int' to report memory usage data to the program. Unfortunately modern architectures can chew through 2gb of memory like a buzz saw hitting some warm butter, especially in the case of a memory leak or memory fragmentation. When a daemon uses more than 2gb of memory, just indicate it's gotten large and we don't know anymore. Pre-change behavior: Robot...
Daniel WaltonDonald SharpDaniel Walton
0d7435f2138bgpd: Add support for timer commands with peer-group syntaxThe peer-groups parser is missing advertisement-interval and 'timers connect' Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Timo Teräs <timo.teras@iki.fi>
Timo TeräsDonald SharpTimo Teräs
5a2a1ec18c8bgpd: update rtt on soft clearrtt is calculated dynamically by the kernel. Refresh it on soft clear. Fixes: ef757700d0 "bgpd: allow using rtt in route-map's set metric" Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Timo TeräsDonald SharpTimo Teräs
0edba8b6ad9bgpd: check rtt later after the real peer is knownOPEN message handler moves the connection from the temporary "struct peer" (used to accept it) to the real "struct peer" based on the configuration. RTT needs to be updated only to the real struct peer, and this patch moves the RTT query to point where realpeer is known. Fixes: ef757700d0 "bgpd: allow using rtt in route-map's set metric" Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Timo TeräsDonald SharpTimo Teräs
983525e8b56zebra: fix rtadv detectionThe GLIBC macro tests were just plain wrong. Glibc 2.1 is ancient and the support should be detected via configure.ac test, not macro test. Build with HAVE_RTADV but !RTADV is broke after vrf, so for now, just define RTADV always if HAVE_RTADV is there. Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Donald SharpDonald Sharp
6d853c43d9dpimd: Limit pim hello log messagespimd was outputting allot of data surrounding pim hello packets. In addition the debugging was inconsistent and not all turned on via 'debug pim packet hello'. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald SharpDonald Sharp
bf99b420a57bgpd: Fix bgp_btoa to compilebgp_btoa was abandoned at some point in time in the past. This commit gets it to compile and to be added to /usr/bin. At this point in time no work has done for 'correctness' of execution Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
c8af680df5blib: Add zlog_hexdump() for debuggingSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
363c903435bbgpd: crash from not NULLing freed pointersSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com> There was a crash from not NULLing out peer->hostname but I cleaned up a bunch of other suspect ones as well.
Daniel WaltonDonald SharpDaniel Walton
92e62e06ba9ospfd: Lower the default OSPF spf timers to '0 50 5000'Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
f89b09be92bbgpd: Lower BGP's default keepalive/holdtime to 3s/9sSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
8e644534b4dbgpd: Remove BGP_ERROR_START_TIMER, it was no longer usedSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
c37b9bccdccbgpd: Enable "bgp log-neighbor-changes" by defaultSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
57fcfda56adbgpd: Do not allow a timers connect of 0, this can hammer the CPUSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Daniel WaltonDonald SharpDaniel Walton
3ff77fe62ecbgpd: Remove BGP's asorig timer, it is no longer usedSigned-off-by: Daniel Walton <dwalton@cumulusnetworks.com> Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>