summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-03-11FRRouting Release 4.0frr-4.0Martin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-03-11Merge pull request #1838 from qlyoung/bgpd-fix-update-group-commands-4.0Martin Winter
bgpd: fix update-group show commands [4.0]
2018-03-10Merge pull request #1837 from opensourcerouting/rpki-pkgDonald Sharp
Rpki pkg
2018-03-08Merge pull request #1785 from donaldsharp/cpick_into_4_0Renato Westphal
*: Make code use a consisten definition of labels
2018-03-08Merge pull request #1848 from qlyoung/lsan-suppression-4.0Martin Winter
tools: add LeakSanitizer suppressions list [4.0]
2018-03-07tools: add LeakSanitizer suppressions listQuentin Young
Building FRR with AddressSanitizer is kind of annoying since libpython3.5 leaks memory, clippy links libpython3.5 and clippy runs as part of the build process. LeakSanitizer has a way to suppress leaks at runtime by setting the LSAN_OPTIONS environment variable to contain a file path to a suppression list: LSAN_OPTIONS=suppressions=path/to/suppr.txt This commit provides the file. Setting this environment variable to LSAN_OPTIONS=suppressions=../tools/lsan-suppressions.txt before building should allow a clean build with ASAN enabled. The relative path is there because LeakSanitizer looks at paths relative to the binary it is sanitizing; clippy is in lib/ so the path is set relative to lib/. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-03-07*: Make code use a consisten definition of labelsDonald Sharp
Turns out we had 3 different ways to define labels all of them overlapping with the same meanings. Consolidate to 1. This one choosen is consistent naming wise with what the *bsd and linux kernels use. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-03-07Merge pull request #1846 from opensourcerouting/dev-4.0-ospf-sr-uaf-fixQuentin Young
ospfd: cancel SR thread at shutdown [4.0]
2018-03-07ospfd: cancel SR thread at shutdownQuentin Young
Otherwise if it is scheduled the thread pointer will be accessed after the shutdown task finishes accessing, having deleted the structure that owns said pointer, which causes a heap UAF. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-03-06debianpkg: Fix - need to always run dh_gencontrolMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-03-06Merge pull request #1807 from opensourcerouting/reload-helperOlivier Dugeon
tools: Add helper frr-reload shell script for clean error
2018-03-06debianpkg: No RPKI support for Ubuntu 12.04Martin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-03-06Merge pull request #1832 from opensourcerouting/dev-4.0-fix-vtysh-output-initQuentin Young
dev/4.0: fix vtysh output init
2018-03-06bgpd: fix update-group show commandsQuentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-03-06debianpkg: Add option to build with RPKIMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-03-06redhat: Add RPKI comment on build instructionsMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-03-06vtysh: initialize vty structure correctly for output to terminalChristian Franke
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2018-03-04redhat: Add option to build with RPKIMartin Winter
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-02-28tools: Add helper frr-reload shell script for clean errorMartin Winter
Adding the shell script allows a clean error if frr-pythontools is not installed. Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2018-02-27Merge pull request #1773 from Orange-OpenSource/dev/4.0Russ White
OSPF Segment Routing fix
2018-02-27Merge pull request #1775 from qlyoung/fix-keepalive-sentinel-4.0Russ White
[4.0] bgpd: fix incorrect keepalive timer evaluation
2018-02-26Merge pull request #1800 from opensourcerouting/dev-4.0/vtysh-isis-fixesDonald Sharp
dev 4.0/vtysh isis fixes
2018-02-26vtysh: Fix missing \n at end of desc stringChristian Franke
2018-02-26vtysh: pass route-map & prefix-list commands to isisd and sharpdChristian Franke
Use VTYSH_RMAP in extract.pl instead of having two lists, and add isisd and sharpd to VTYSH_RMAP.
2018-02-22OSPFd: Correct style 2nd roundOlivier Dugeon
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-22OSPFd: Correct styleOlivier Dugeon
- Correct style warning and errors detected by checkpatch.pl Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-21bgpd: fix incorrect keepalive timer evaluationQuentin Young
Incorrect check for sentinel value effectively caused peers to sometimes use the keepalive timer value of other peers, which sometimes led to hold timer expiry. Signed-off-by: Quentin Young <qlyoung@qlyoung.net>
2018-02-21ospfd: Fix ospfd crashOlivier Dugeon
- ospfd/ospf_opaque.c: Update issue #1652 by introducing a new function 'free_opaque_info_owner()' to clean list of callback owner and call this function in appropriate place where 'listdelete_and_null' is not used. - ospfd/ospf_packet.c: In case of crash, ospfd is not been able to flush LSA. In case of self Opaque LSA, when restarting, ospfd crash during the resynchronisation process with its neighbor due to an empty list of LSA to flood. Just add a control on the list count in 'ospf_ls_upd_queue_send()' to escape the function and avoid the problem. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-21ospfd: Add json output for Segment RoutingOlivier Dugeon
- To ease checking the Segment Routing conformity in topotest, add json output to 'show ip ospf database segment-routing' CLI. - Update ospfd user guide accordingly - Update OSPF-SR documentation with supported features and interoperability Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-21OSPFD: Fix Segment Routing Lan Adjacency TLVsOlivier Dugeon
- Lan Adjacency TLVs was incorrectly formatted due to an error in TLV size computation. Add new macro to fix this issue - Update SR link nexthop when it corresponds to an LAN Adj SID. The nexthop is set to the router id in the TLVi (as per draft), but we need the neighbor IP address to set the corresponding MPLS LFIB entry Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-14Merge pull request #1741 from donaldsharp/isis_leaksRafael Zalamena
isisd: Free up some memory allocated.
2018-02-10isisd: Free up some memory allocated.Donald Sharp
The v4 and v6 prefixes were created but not deleted on shutdown properly. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-06configure: Update version of softwarefrr-4.0-devDonald Sharp
With the start of the 4.0 development branch, update the configure.ac file to properly reflect this change. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-06Merge pull request #1542 from qlyoung/stylecheckerMartin Winter
tools: add style checking scripts
2018-02-06Merge pull request #1653 from Orange-OpenSource/SR-RoutingDonald Sharp
OSPFD: Add Experimental Segment Routing support
2018-02-05Merge pull request #1713 from donaldsharp/nexthop_vrfsRenato Westphal
lib: Fix encoding of vrf
2018-02-05Merge pull request #1702 from donaldsharp/bgp_cleanupLou Berger
Bgp cleanup
2018-02-05Merge pull request #1694 from qlyoung/fix-bgp-default-shutdown-conf-writeLou Berger
bgpd: fixup default shutdown
2018-02-05OSPFd: Fix Opaque LSA filtering in Segment RoutingOlivier Dugeon
Opaque LSA were incorrectly filtered. LSA Type 1 with a router id set to 4.x.x.x or 7.x.x.x. or 8.x.x.x are not correctly filtered and pass to Segment Routing as wrong Opaque LSA of type Router Information, Extended Prefix respectively Extended Link. - Add Opaque LSA check to the filter The CLI command 'segment-routing prefix' didn't check if a same prefix already exist in SRDB resulting to multiple entries in the SRDB for the same prefix. - Update prefix intead of adding a new one if already present in the SRDB Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-05lib: Fix encoding of vrfDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-03OSPFd: Fix ospfd crash during CIOlivier Dugeon
When preforming CI test, CLI command 'no router ospf' followed by a 'router ospf' is performed to clean up the previous configuration. Ospfd crash when configuring 'netwoark area'. This is due to opsf_opaque_term() introduce in previous commit that cause this crash. It remove not only Opaque LSA but also the list through the call to 'list_delete_and_null()' function. Same take place in 'ospf_mpls_te_term()', 'ospf_router_info_term()' and 'ospf_ext_term()' function. New set of 'ospf_XXX_finish()' has been introduced to solve this issue while keeping the possiblity to terminate properly the Opaque LSA and remove MPLS LFIB entries set by Segment Routing. Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
2018-02-03bgpd: Fix some evpn hash key creationDonald Sharp
The creation of a hash key should use a jhash function instead of adding the char's together. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-03bgpd: Fix bgp_vty.h to conform to coding standardDonald Sharp
The function declarations were missing some parameter names as is our standard. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-03bgpd: bgp_afi_node_get is listed 2 times in bgp_route.hDonald Sharp
Remove the extra. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-03Merge pull request #1695 from chiragshah6/mdevRenato Westphal
ospfd: fix default-information orignate command not to display default parameter
2018-02-03Merge pull request #1705 from donaldsharp/martian_nexthopRenato Westphal
bgpd: Add ability to see martian next-hop's for a vrf
2018-02-02bgpd: Add ability to see martian next-hop's for a vrfDonald Sharp
We've run across an issue where the local connected ip address is not being removed in some error condition. During trackdown it was noticed that we cannot look at this table for views/vrf's. While we don't have the bug tracked down yet this will help us figure it out. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-02Merge pull request #1703 from opensourcerouting/bsd-warningsDonald Sharp
BSD warnings
2018-02-02lib: fix more warnings on *BSDRenato Westphal
* zebra/kernel_socket.c: include "rt.h" to provide the prototypes of kernel_init() and kernel_terminate(); * lib/prefix.h: remove the deprecation warning whenever ETHER_ADDR_LEN is used. isisd uses the ETHER_HDR_LEN constant which is defined in terms of ETHER_ADDR_LEN in the *BSD system headers. So, when building FRR on *BSD, we were getting several warnings because we were using ETHER_ADDR_LEN indirectly; * lib/command_lex.l, lib/defun_lex.l: ignore other harmless warnings; * lib/spf_backoff.c: cast 'tv->tv_usec' to 'long int' before printing. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-02-02*: silence '-Wchar-subscripts' warnings on NetBSDRenato Westphal
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>