]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
7 years agoredhat: Move frr-reload python script to it's own sub package to avoid the python2...
Martin Winter [Fri, 14 Apr 2017 00:34:26 +0000 (17:34 -0700)]
redhat: Move frr-reload python script to it's own sub package to avoid the python2 requirement for main frr package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Don't set file attributes for symlinks
Martin Winter [Fri, 14 Apr 2017 00:33:24 +0000 (17:33 -0700)]
redhat: Don't set file attributes for symlinks

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Fix ospf6d typo in frr.spec.in
Martin Winter [Thu, 13 Apr 2017 22:00:16 +0000 (15:00 -0700)]
redhat: Fix ospf6d typo in frr.spec.in

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Fix dependencies for rpm package
Martin Winter [Thu, 13 Apr 2017 03:23:18 +0000 (20:23 -0700)]
redhat: Fix dependencies for rpm package

- Add bison, flex & autoconf
- Remove systemd for systems without it (i.e. CentOS 6)
- Update doc to reflect dependencies

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Remove tab's with spaces in frr.spec.in to make it better readable
Martin Winter [Thu, 13 Apr 2017 02:10:35 +0000 (19:10 -0700)]
redhat: Remove tab's with spaces in frr.spec.in to make it better readable

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Replace tab's with spaces in README
Martin Winter [Thu, 13 Apr 2017 01:54:40 +0000 (18:54 -0700)]
redhat: Replace tab's with spaces in README

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #365 from opensourcerouting/snap-doc-fixes
Donald Sharp [Thu, 13 Apr 2017 01:12:26 +0000 (21:12 -0400)]
Merge pull request #365 from opensourcerouting/snap-doc-fixes

snapcraft: Improve README.usage.md based on feedback received

7 years agosnapcraft: Improve README.usage.md based on feedback received
Martin Winter [Wed, 12 Apr 2017 23:00:43 +0000 (16:00 -0700)]
snapcraft: Improve README.usage.md based on feedback received

- Fix snap connect (it's now called core, not ubuntu-core)
- Add section on MPLS configuration
- Add FAQ topic on ospfd/ospf6d crashing before privs are assigned to snap
- Add pointer to official webpage

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agodoc: Cleanup 'Build the Software'
Donald Sharp [Wed, 5 Apr 2017 00:36:16 +0000 (20:36 -0400)]
doc: Cleanup 'Build the Software'

The frrouting.org web page:
https://frrouting.org/manual/Build-the-Software.html#Build-the-Software
is built from doc/install.texi.  The output on this page is a bit
missleading, let's clean it up some.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoRelease: FRR-2.0 frr-2.0
Martin Winter [Sun, 2 Apr 2017 05:22:47 +0000 (22:22 -0700)]
Release: FRR-2.0

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agolib: fix usage of getgrouplist() in *BSD
Mike Tancsa [Fri, 31 Mar 2017 20:50:35 +0000 (17:50 -0300)]
lib: fix usage of getgrouplist() in *BSD

On BSD systems, the getgrouplist() function returns 0 if successful and
-1 on error.

Linux in the other hand returns *ngroups (the number of groups of which
user is a member) on success and -1 on error.

Given this difference, the most portable way to use getgrouplist()
is use its return value only for checking if it succeeded or not.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoMerge pull request #307 from LabNConsulting/working/2.0/patch/rename2
Donald Sharp [Thu, 30 Mar 2017 19:23:55 +0000 (14:23 -0500)]
Merge pull request #307 from LabNConsulting/working/2.0/patch/rename2

Rename: FreeRangeRouting --> FRRouting

7 years agoRename: freerangerouting --> frrouting
Lou Berger [Thu, 30 Mar 2017 18:24:05 +0000 (14:24 -0400)]
Rename: freerangerouting --> frrouting

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoRename: FreeRangeRouting FRRouting
Lou Berger [Thu, 30 Mar 2017 18:22:35 +0000 (14:22 -0400)]
Rename: FreeRangeRouting FRRouting

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #299 from opensourcerouting/test-ref-out
Donald Sharp [Thu, 30 Mar 2017 11:14:21 +0000 (06:14 -0500)]
Merge pull request #299 from opensourcerouting/test-ref-out

tests: format TestRefMismatch more readable

7 years agoMerge pull request #298 from opensourcerouting/defaults
Donald Sharp [Thu, 30 Mar 2017 11:13:19 +0000 (06:13 -0500)]
Merge pull request #298 from opensourcerouting/defaults

track version & "defaults" in configs

7 years ago*: track version & "defaults" in configs
David Lamparter [Thu, 9 Mar 2017 18:00:19 +0000 (19:00 +0100)]
*: track version & "defaults" in configs

[CF]: Move default name to autoconf and update tests

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agotests: format TestRefMismatch more readable
Christian Franke [Tue, 28 Mar 2017 16:23:47 +0000 (18:23 +0200)]
tests: format TestRefMismatch more readable

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agoMerge pull request #295 from opensourcerouting/community_md_edits
Donald Sharp [Sat, 25 Mar 2017 11:36:53 +0000 (07:36 -0400)]
Merge pull request #295 from opensourcerouting/community_md_edits

COMMUNITY.md: update CodingStyle & branching

7 years agoCOMMUNITY.md: update CodingStyle & branching
David Lamparter [Mon, 23 Jan 2017 19:52:13 +0000 (20:52 +0100)]
COMMUNITY.md: update CodingStyle & branching

Also add a note that this is documentation, not law.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #277 from donaldsharp/proto-dev-build
Renato Westphal [Tue, 21 Mar 2017 15:31:41 +0000 (12:31 -0300)]
Merge pull request #277 from donaldsharp/proto-dev-build

Proto dev build

7 years agoMerge pull request #281 from opensourcerouting/snapcraft-fixes
Donald Sharp [Tue, 21 Mar 2017 15:11:16 +0000 (11:11 -0400)]
Merge pull request #281 from opensourcerouting/snapcraft-fixes

Snapcraft fixes

7 years agosnapcraft: Change setup/ to snap/ directory based on new snap format
Martin Winter [Sat, 18 Mar 2017 03:50:09 +0000 (20:50 -0700)]
snapcraft: Change setup/ to snap/ directory based on new snap format

DEPRECATED: Assets in 'setup/gui' should now be placed in 'snap/gui'.
See http://snapcraft.io/docs/deprecation-notices/dn3 for more information.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agosnapcraft: Add missing snapcraft files from dist (make dist) archive
Martin Winter [Sat, 18 Mar 2017 03:43:27 +0000 (20:43 -0700)]
snapcraft: Add missing snapcraft files from dist (make dist) archive

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agozebra: zebra_fpm_dt.c does not always need protobuf
Donald Sharp [Wed, 15 Mar 2017 13:37:03 +0000 (09:37 -0400)]
zebra: zebra_fpm_dt.c does not always need protobuf

When compiling zebra_fpm_dt.c only pull in
protobuf headers if we've turned it on.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agozebra: Fix protobuf build on stable/2.0
Donald Sharp [Wed, 15 Mar 2017 13:25:43 +0000 (09:25 -0400)]
zebra: Fix protobuf build on stable/2.0

When compiling w/ --enable-protobuf on stable/2.0
we were attempting to dereference the zvrf->vrf_id
which got moved to zvrf->vrf->vrf_id.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #272 from opensourcerouting/snapcraft-logo-update
Donald Sharp [Sat, 11 Mar 2017 11:58:24 +0000 (06:58 -0500)]
Merge pull request #272 from opensourcerouting/snapcraft-logo-update

snapcraft: Replace temporary logo with official FRR logo

7 years agosnapcraft: Replace temporary logo with official FRR logo
Martin Winter [Sat, 11 Mar 2017 05:48:55 +0000 (12:48 +0700)]
snapcraft: Replace temporary logo with official FRR logo

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #266 from donaldsharp/nht
David Lamparter [Fri, 10 Mar 2017 13:10:10 +0000 (14:10 +0100)]
Merge pull request #266 from donaldsharp/nht

bug fixes

7 years agozebra: Fix specific prefix handling
Donald Sharp [Fri, 10 Mar 2017 00:37:23 +0000 (19:37 -0500)]
zebra: Fix specific prefix handling

Suppose we are handling the process_workq and either a new static
route is installed or a Routing Protocol installs a new route.
We will call evaluate_rnh with a specific prefix.  We might
have a situation where we clear the NHC flag prematurely.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #267 from opensourcerouting/vty-completion-again
Donald Sharp [Thu, 9 Mar 2017 20:34:57 +0000 (15:34 -0500)]
Merge pull request #267 from opensourcerouting/vty-completion-again

vty completion memory counting redux

7 years agolib: handle case specifc types, protect against double free (issue #144)
Lou Berger [Wed, 8 Mar 2017 17:14:15 +0000 (12:14 -0500)]
lib: handle case specifc types, protect against double free (issue #144)

Signed-off-by: Lou Berger <lberger@labn.net>
[DL: dropped changes except the two NULL assignments]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoRevert "lib: Fix tab completions memleak, memory stats corruption"
David Lamparter [Thu, 9 Mar 2017 18:23:00 +0000 (19:23 +0100)]
Revert "lib: Fix tab completions memleak, memory stats corruption"

This reverts commit 039dc61292de5f3ed5f46316b1940ab6bb184c3f.

The patch actually made the situation worse since the return value from
cmd_complete_command_real() was now inconsistently allocated from
different memory stat pools.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoLowercase frr.conf
Martín Beauchamp [Mon, 27 Feb 2017 18:26:20 +0000 (13:26 -0500)]
Lowercase frr.conf

7 years agozebra: Notify all nexthops that we've changed
Donald Sharp [Tue, 7 Mar 2017 20:13:04 +0000 (15:13 -0500)]
zebra: Notify all nexthops that we've changed

Zebra when it was scanning the tree would unset NEXTHOPS_CHANGED
after the first notification.  If the route we are notifying because
of covers multiple interesting nexthops then we would be unable
to know that we need to notify for that one as well because of
the flag removal.

Ticket: CM-15157
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #259 from opensourcerouting/vtysh-completion-mtype-underflow
Quentin Young [Tue, 7 Mar 2017 18:24:12 +0000 (13:24 -0500)]
Merge pull request #259 from opensourcerouting/vtysh-completion-mtype-underflow

vtysh: fix completion

7 years agovtysh: fix completion
David Lamparter [Tue, 7 Mar 2017 18:16:21 +0000 (19:16 +0100)]
vtysh: fix completion

The return value from cmd_complete_command is a VECTOR_INDEX, not TMP.
Use the appropriate vector_only_index_free().

Fixes #223.

Reported-by: https://github.com/k0ste
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #256 from donaldsharp/bgp_bfd_fix
David Lamparter [Tue, 7 Mar 2017 15:49:53 +0000 (16:49 +0100)]
Merge pull request #256 from donaldsharp/bgp_bfd_fix

bgpd: Clean up bfd memory *before* deleting the peer

7 years agobgpd: Clean up bfd memory *before* deleting the peer
Donald Sharp [Tue, 7 Mar 2017 13:45:24 +0000 (08:45 -0500)]
bgpd: Clean up bfd memory *before* deleting the peer

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #238 from donaldsharp/bgp_memory
Lou Berger [Thu, 2 Mar 2017 15:07:34 +0000 (10:07 -0500)]
Merge pull request #238 from donaldsharp/bgp_memory

bgpd: Fix memory leaks on shutdown

7 years agobgpd: Fix memory leaks on shutdown
Donald Sharp [Thu, 2 Mar 2017 01:26:06 +0000 (20:26 -0500)]
bgpd: Fix memory leaks on shutdown

The original code on shutdown assumed a 'forced' mode
if there was no process_main_queue.  This construct
was violated by commit 2e02b9b2d1ed29975001d6917f9f726854ec5559
due to not fully understanding the shutdown process.

If we are shutting down, don't store work to do later,
just gracefully don't do it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #227 from qlyoung/stable-no-deprecated
Russ White [Wed, 1 Mar 2017 14:53:17 +0000 (09:53 -0500)]
Merge pull request #227 from qlyoung/stable-no-deprecated

*: remove QUAGGA_NO_DEPRECATED_INTERFACES

7 years ago*: remove QUAGGA_NO_DEPRECATED_INTERFACES
Quentin Young [Fri, 17 Feb 2017 18:19:27 +0000 (18:19 +0000)]
*: remove QUAGGA_NO_DEPRECATED_INTERFACES

This define is used only to guard macros in lib/linklist.h which
themselves are not used anywhere in the codebase and have been marked
deprecated since anno domini 2005

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #221 from LabNConsulting/working/2.0/patch/issue-218
Donald Sharp [Fri, 24 Feb 2017 01:19:39 +0000 (20:19 -0500)]
Merge pull request #221 from LabNConsulting/working/2.0/patch/issue-218

bgpd: Fix issue #218

7 years agobgpd: Fix issue #218
Lou Berger [Thu, 23 Feb 2017 22:48:47 +0000 (17:48 -0500)]
bgpd: Fix issue #218
      Wrong offset was used when using global V6 address in place of
      v6 LL.  (Introduced in earlier fix of broken RD advertisement.)

      Tested by @dslice in master.

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #220 from opensourcerouting/fixes/addpath_id
Donald Sharp [Thu, 23 Feb 2017 15:53:51 +0000 (10:53 -0500)]
Merge pull request #220 from opensourcerouting/fixes/addpath_id

Fix bgp_info_addpath_{rx,tx}_str if addpath info is not present

7 years agobgpd: fix bgp_info_addpath_{rx,tx}_str if addpath info is not present
Christian Franke [Thu, 23 Feb 2017 13:27:00 +0000 (14:27 +0100)]
bgpd: fix bgp_info_addpath_{rx,tx}_str if addpath info is not present

The buffer needs to be set to length 0 if nothing is written into
it, otherwise bgpd will log uninitialized memory, disclosing information
and possibly leading to a crash.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agorelease: FRR 2.0-rc2 frr-2.0-rc2
Martin Winter [Thu, 23 Feb 2017 12:47:59 +0000 (19:47 +0700)]
release: FRR 2.0-rc2

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #217 from bingen/missing_desc_entry_2
Donald Sharp [Tue, 21 Feb 2017 17:40:31 +0000 (12:40 -0500)]
Merge pull request #217 from bingen/missing_desc_entry_2

Add missing DESC_ENTRY to lib/log.c

7 years agoAdd missing DESC_ENTRY to lib/log.c
ßingen [Tue, 21 Feb 2017 11:27:44 +0000 (12:27 +0100)]
Add missing DESC_ENTRY to lib/log.c

7 years agoMerge pull request #209 from opensourcerouting/building-docs
Lou Berger [Fri, 17 Feb 2017 15:28:52 +0000 (10:28 -0500)]
Merge pull request #209 from opensourcerouting/building-docs

doc: Add initial set of docs on building FRR on various Distributions

7 years agodoc: Fix pytest installation instructions on Ubuntu 12.04
Martin Winter [Thu, 16 Feb 2017 17:52:07 +0000 (00:52 +0700)]
doc: Fix pytest installation instructions on Ubuntu 12.04

Ubuntu 12.04 doesn't have a pytest package - needs to be installed with pip

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agodoc: Fixed a few typos on Building Doc's, Changed Tab's to spaces and limited line...
Martin Winter [Thu, 16 Feb 2017 15:55:09 +0000 (22:55 +0700)]
doc: Fixed a few typos on Building Doc's, Changed Tab's to spaces and limited line length to < 80 chars where possible

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agodoc: Add initial set of docs on building FRR on various Distributions
Martin Winter [Thu, 16 Feb 2017 09:40:09 +0000 (16:40 +0700)]
doc: Add initial set of docs on building FRR on various Distributions

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #206 from opensourcerouting/ldpd-ordered-output
Donald Sharp [Wed, 15 Feb 2017 14:39:18 +0000 (06:39 -0800)]
Merge pull request #206 from opensourcerouting/ldpd-ordered-output

ldpd: display everything in order on CLI output

7 years agoldpd: fix segfault when configuring multiple pseudowires
Renato Westphal [Wed, 14 Dec 2016 00:51:41 +0000 (22:51 -0200)]
ldpd: fix segfault when configuring multiple pseudowires

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'adj' elements
Renato Westphal [Wed, 14 Dec 2016 19:39:28 +0000 (17:39 -0200)]
ldpd: use red-black trees to store 'adj' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'l2vpn_pw' elements
Renato Westphal [Wed, 14 Dec 2016 15:53:07 +0000 (13:53 -0200)]
ldpd: use red-black trees to store 'l2vpn_pw' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'l2vpn_if' elements
Renato Westphal [Wed, 14 Dec 2016 14:34:57 +0000 (12:34 -0200)]
ldpd: use red-black trees to store 'l2vpn_if' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'l2vpn' elements
Renato Westphal [Wed, 14 Dec 2016 12:42:45 +0000 (10:42 -0200)]
ldpd: use red-black trees to store 'l2vpn' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'nbr_params' elements
Renato Westphal [Wed, 14 Dec 2016 11:14:52 +0000 (09:14 -0200)]
ldpd: use red-black trees to store 'nbr_params' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'tnbr' elements
Renato Westphal [Tue, 13 Dec 2016 18:19:15 +0000 (16:19 -0200)]
ldpd: use red-black trees to store 'tnbr' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'iface' elements
Renato Westphal [Tue, 13 Dec 2016 17:29:35 +0000 (15:29 -0200)]
ldpd: use red-black trees to store 'iface' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoldpd: use red-black trees to store 'lde_map' elements
Renato Westphal [Sat, 3 Dec 2016 23:14:44 +0000 (21:14 -0200)]
ldpd: use red-black trees to store 'lde_map' elements

Using red-black trees instead of linked lists brings the following
benefits:
1 - Elements are naturally ordered (no need to reorder anything before
    outputting data to the user);
2 - Faster lookups/deletes: O(log n) time complexity against O(n).

The insert operation with red-black trees is more expensive though,
but that's not a big issue since lookups are much more frequent.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoMerge pull request #200 from opensourcerouting/pytest-stable
Donald Sharp [Tue, 14 Feb 2017 16:27:50 +0000 (08:27 -0800)]
Merge pull request #200 from opensourcerouting/pytest-stable

pytest for stable/2.0

7 years agoMerge pull request #193 from opensourcerouting/mw-coverity-fixes-2
Donald Sharp [Tue, 14 Feb 2017 02:41:12 +0000 (21:41 -0500)]
Merge pull request #193 from opensourcerouting/mw-coverity-fixes-2

A few fixes for issues found with Coverity (v2 - replace PR 187)

7 years agoMerge pull request #201 from opensourcerouting/fixes/coverity-isis
Donald Sharp [Tue, 14 Feb 2017 02:37:37 +0000 (21:37 -0500)]
Merge pull request #201 from opensourcerouting/fixes/coverity-isis

isisd: address coverity findings

7 years agoMerge pull request #202 from opensourcerouting/fixes/gitignore-stable
Russ White [Tue, 14 Feb 2017 00:46:10 +0000 (19:46 -0500)]
Merge pull request #202 from opensourcerouting/fixes/gitignore-stable

*: Add missing files to gitignore

7 years ago*: Add missing files to gitignore
Christian Franke [Mon, 13 Feb 2017 18:31:09 +0000 (19:31 +0100)]
*: Add missing files to gitignore

7 years agoisisd: address coverity findings
Christian Franke [Mon, 13 Feb 2017 18:27:54 +0000 (19:27 +0100)]
isisd: address coverity findings

7 years agotests: fix out-of-tree build
David Lamparter [Sat, 11 Feb 2017 00:03:57 +0000 (01:03 +0100)]
tests: fix out-of-tree build

Fix pytest with $(top_srcdir) != "."

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agotests: add pytest testrunners
Christian Franke [Fri, 3 Feb 2017 15:58:58 +0000 (16:58 +0100)]
tests: add pytest testrunners

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agotests: reorganize tests hierarchically
Christian Franke [Fri, 3 Feb 2017 15:58:11 +0000 (16:58 +0100)]
tests: reorganize tests hierarchically

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agotests: remove dejagnu
Christian Franke [Fri, 3 Feb 2017 15:53:47 +0000 (16:53 +0100)]
tests: remove dejagnu

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agoospfd: CID 1399387 (#1 of 2): Destination buffer too small (STRING_OVERFLOW)
Martin Winter [Fri, 3 Feb 2017 16:05:11 +0000 (23:05 +0700)]
ospfd: CID 1399387 (#1 of 2): Destination buffer too small (STRING_OVERFLOW)

Coverity: string_overflow: You might overrun the 100-character destination string vty_path by writing 4096 characters from vty_sock_path.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agolib: CID 1399296: Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)
Martin Winter [Fri, 3 Feb 2017 11:37:48 +0000 (18:37 +0700)]
lib: CID 1399296: Assign instead of compare (PW.ASSIGN_WHERE_COMPARE_MEANT)

Needs to be a comparison, not assignment

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agozebra: Fix CID 1399335 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)
Martin Winter [Fri, 3 Feb 2017 11:30:59 +0000 (18:30 +0700)]
zebra: Fix CID 1399335 (#1 of 1): Wrong sizeof argument (SIZEOF_MISMATCH)

Needs to be size of correct structure (prefix instead of prefix_ipv4)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agovtysh: Fix Coverity Warning CID 1399479 (#1 of 1): Destination buffer too small ...
Martin Winter [Fri, 10 Feb 2017 09:51:57 +0000 (16:51 +0700)]
vtysh: Fix Coverity Warning CID 1399479 (#1 of 1): Destination buffer too small (BUFFER_SIZE)

Coverity: buffer_size: You might overrun the 108 byte destination string addr.sun_path by writing the maximum 4095 bytes from path.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoospfd: Fix Coverity Warning CID 1399480 (#1 of 1): Buffer not null terminated (BUFFER...
Martin Winter [Fri, 3 Feb 2017 11:09:36 +0000 (18:09 +0700)]
ospfd: Fix Coverity Warning CID 1399480 (#1 of 1): Buffer not null terminated (BUFFER_SIZE_WARNING)

Coverity: buffer_size_warning: Calling strncpy with a maximum size argument of 100 bytes on destination array pid_file of size 100 bytes might leave the destination string unterminated.
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #191 from opensourcerouting/ospfclient-incl
Donald Sharp [Thu, 9 Feb 2017 17:12:17 +0000 (12:12 -0500)]
Merge pull request #191 from opensourcerouting/ospfclient-incl

[stable] ospfclient: #include sources

7 years agoospfclient: #include sources
David Lamparter [Thu, 9 Feb 2017 11:59:44 +0000 (12:59 +0100)]
ospfclient: #include sources

Pulling in source files from another directory breaks automake's
distclean target, and there seems to be no good fix for this...
(particularly since we need -fPIC build for a DSO here, while ospfd
compiles for an executable...)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #190 from opensourcerouting/config-write-sync-stable
Donald Sharp [Thu, 9 Feb 2017 14:26:58 +0000 (09:26 -0500)]
Merge pull request #190 from opensourcerouting/config-write-sync-stable

[stable] lib: use fsync() for config writes, plug fd leak

7 years agolib: use fsync() for config writes, plug fd leak
David Lamparter [Wed, 8 Feb 2017 15:14:10 +0000 (16:14 +0100)]
lib: use fsync() for config writes, plug fd leak

sync() has a HUGE impact on systems that perform actual I/O, i.e. real
servers...

Also, we were leaking a fd on each config write ever since
c5e69a0 "lib/vty: add separate output fd support to VTYs"
(by myself :( ...)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #179 from donaldsharp/more_quagga_fixups
Lou Berger [Wed, 8 Feb 2017 01:46:44 +0000 (20:46 -0500)]
Merge pull request #179 from donaldsharp/more_quagga_fixups

*: Found some instances of Quagga.conf

7 years ago*: Found some instances of Quagga.conf
Donald Sharp [Tue, 7 Feb 2017 18:44:09 +0000 (13:44 -0500)]
*: Found some instances of Quagga.conf

Cleanup Quagga.conf -> Frr.conf

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #176 from opensourcerouting/mtype-underflow-backtrace
Donald Sharp [Tue, 7 Feb 2017 18:04:27 +0000 (13:04 -0500)]
Merge pull request #176 from opensourcerouting/mtype-underflow-backtrace

lib: print backtrace on MTYPE count underflow

7 years agoMerge pull request #178 from opensourcerouting/ospf_lib_private
Donald Sharp [Tue, 7 Feb 2017 18:04:13 +0000 (13:04 -0500)]
Merge pull request #178 from opensourcerouting/ospf_lib_private

make libfrrospf private

7 years agoMerge pull request #173 from LabNConsulting/working/2.0/patch-set/issue-172
David Lamparter [Tue, 7 Feb 2017 16:27:44 +0000 (17:27 +0100)]
Merge pull request #173 from LabNConsulting/working/2.0/patch-set/issue-172

2.0: Fix encap attribute on wire, protect against broken object.

7 years agoospfd: make libfrrospf a private non-dynamic lib
David Lamparter [Tue, 24 Jan 2017 22:26:20 +0000 (23:26 +0100)]
ospfd: make libfrrospf a private non-dynamic lib

There's no point in installing libospf anymore, now that
libfrrospfclient doesn't link it.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoospfd: isolate ospfapiclient lib from ospf lib
David Lamparter [Tue, 24 Jan 2017 20:35:08 +0000 (21:35 +0100)]
ospfd: isolate ospfapiclient lib from ospf lib

The OSPF API-client library doesn't really use anything from libospf
except some small dumping tools.  Isolate these into a separate file
and detangle the ospfapiclient library.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #161 from donaldsharp/stableMcLibrary
David Lamparter [Tue, 7 Feb 2017 16:17:12 +0000 (17:17 +0100)]
Merge pull request #161 from donaldsharp/stableMcLibrary

Stable mc library

7 years agobgpd: Allow views to 'pretend' resolve nexthops
Donald Sharp [Wed, 1 Feb 2017 15:31:40 +0000 (10:31 -0500)]
bgpd: Allow views to 'pretend' resolve nexthops

Views are supposed to be independent tables that have no connection to
routing tables.  Since View's are 'independent' there is no way to do
'real' nexthop resolution since connected routes and interfaces are
associated with a particular table (or really vrf).  So when we have a
bgp instance assume that nexthops specified are actually valid, since we
are propagating what our neighbors are telling us.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
[cherry-picked from master 6fa1ab2eecb39b35256739f7083196d6f556f639]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge branch 'frr/pull/157' ("Fixinator")
David Lamparter [Tue, 7 Feb 2017 15:38:03 +0000 (16:38 +0100)]
Merge branch 'frr/pull/157' ("Fixinator")

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: print backtrace on MTYPE count underflow
David Lamparter [Tue, 7 Feb 2017 15:23:38 +0000 (16:23 +0100)]
lib: print backtrace on MTYPE count underflow

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #171 from donaldsharp/double_free
Renato Westphal [Tue, 7 Feb 2017 13:48:15 +0000 (11:48 -0200)]
Merge pull request #171 from donaldsharp/double_free

lib: Don't use malloc!

7 years agobgpd rfapi: advertise encap attribute when TT is valid and not MPLS.
Lou Berger [Tue, 7 Feb 2017 02:29:43 +0000 (21:29 -0500)]
bgpd rfapi: advertise encap attribute when TT is valid and not MPLS.
     Ensure tunnel type set based on rx'ed
     Ignore bad/mpls encap types.

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agolib: Fixup CR comment
Donald Sharp [Tue, 7 Feb 2017 09:54:40 +0000 (04:54 -0500)]
lib: Fixup CR comment

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agolib: Don't use malloc!
Donald Sharp [Mon, 6 Feb 2017 17:52:28 +0000 (12:52 -0500)]
lib: Don't use malloc!

thread.c was using malloc.  This was found by the
assert added to memory.c.

Fixes issues #170

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #167 from qlyoung/vtysh-subs-stable
Martin Winter [Fri, 3 Feb 2017 20:11:18 +0000 (12:11 -0800)]
Merge pull request #167 from qlyoung/vtysh-subs-stable

vtysh: Quagga.conf -> Frr.conf

7 years agovtysh: Quagga.conf -> Frr.conf
Quentin Young [Wed, 1 Feb 2017 22:01:17 +0000 (22:01 +0000)]
vtysh: Quagga.conf -> Frr.conf

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>