]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
8 years agoMerge pull request #121 from opensourcerouting/snapcraft-packaging
Donald Sharp [Fri, 27 Jan 2017 20:38:43 +0000 (15:38 -0500)]
Merge pull request #121 from opensourcerouting/snapcraft-packaging

snapcraft: Add snapcraft build and documentation files

8 years agosnapcraft: Add snapcraft build and definition files 121/head
Martin Winter [Wed, 25 Jan 2017 21:23:43 +0000 (04:23 +0700)]
snapcraft: Add snapcraft build and definition files

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoMerge pull request #120 from opensourcerouting/snapcraft-base-v3
Russ White [Wed, 25 Jan 2017 20:04:49 +0000 (15:04 -0500)]
Merge pull request #120 from opensourcerouting/snapcraft-base-v3

Snapcraft base changes

8 years agolib: Don't change uid/gid if we are already the correct uid/gid 120/head
Martin Winter [Fri, 20 Jan 2017 19:48:45 +0000 (02:48 +0700)]
lib: Don't change uid/gid if we are already the correct uid/gid

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agovtysh: Add --config_dir option to override compiled in location for vtysh.conf and...
Martin Winter [Sun, 11 Dec 2016 03:06:54 +0000 (19:06 -0800)]
vtysh: Add --config_dir option to override compiled in location for vtysh.conf and Quagga.conf

Only allow the override if vtysh is not run with setuid()

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoldpd: add ctl_socket cli option to override the compiled-in location for the control...
Renato Westphal [Tue, 24 Jan 2017 17:31:40 +0000 (00:31 +0700)]
ldpd: add ctl_socket cli option to override the compiled-in location for the control socket

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
8 years agovtysh: Use HOME environment variable to get homedir and only fallback to passed entry...
Martin Winter [Fri, 20 Jan 2017 19:48:06 +0000 (02:48 +0700)]
vtysh: Use HOME environment variable to get homedir and only fallback to passed entry if no HOME is defined

Snap packages have a local HOME defined inside the SNAP container, but don't get access to passwd entry.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agovtysh: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Wed, 25 Jan 2017 17:43:58 +0000 (00:43 +0700)]
vtysh: Add vty_socket cli option to override the compiled-in location for the VTY daemon sockets

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoripngd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 17:25:28 +0000 (00:25 +0700)]
ripngd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoripd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 17:22:59 +0000 (00:22 +0700)]
ripd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoldpd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 17:19:25 +0000 (00:19 +0700)]
ldpd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agopimd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:58:52 +0000 (22:58 +0700)]
pimd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoospfd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:57:15 +0000 (22:57 +0700)]
ospfd: Add vty_socket cli option to override the compiled-in location for the VTY Socket and add instance number for multi-instance ospf

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoospf6d: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:55:26 +0000 (22:55 +0700)]
ospf6d: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoisisd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:52:49 +0000 (22:52 +0700)]
isisd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agobgpd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:45:50 +0000 (22:45 +0700)]
bgpd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agozebra: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:44:28 +0000 (22:44 +0700)]
zebra: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agolib: Add set_socket_path() to sockopt.c to override the path element of a (vty) socke...
Martin Winter [Tue, 24 Jan 2017 15:42:11 +0000 (22:42 +0700)]
lib: Add set_socket_path() to sockopt.c to override the path element of a (vty) socket (but keep filename)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agopimd: Add missing 'socket' getopt cmdline option
Martin Winter [Fri, 20 Jan 2017 19:29:25 +0000 (02:29 +0700)]
pimd: Add missing 'socket' getopt cmdline option

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoMerge pull request #112 from LabNConsulting/working/2.0/patch-set/rr1
Donald Sharp [Wed, 25 Jan 2017 01:54:32 +0000 (20:54 -0500)]
Merge pull request #112 from LabNConsulting/working/2.0/patch-set/rr1

2.0, Issue #91 FIx VPN/ENCAP safi handoff to rfapi

8 years agobgpd rfapi: Shift rfapi receive hooks for vpn and encap safis into 112/head
G. Paul Ziemba [Mon, 16 Jan 2017 19:09:12 +0000 (11:09 -0800)]
bgpd rfapi: Shift rfapi receive hooks for vpn and encap safis into
     bgp_update/bgp_withdraw (Issue #91)

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
8 years agoMerge pull request #106 from donaldsharp/sbuild
David Lamparter [Tue, 24 Jan 2017 16:24:07 +0000 (17:24 +0100)]
Merge pull request #106 from donaldsharp/sbuild

debian: Fix changelog so sbuild will work

8 years agodebian: Fix changelog so sbuild will work 106/head
Donald Sharp [Sat, 21 Jan 2017 12:51:22 +0000 (07:51 -0500)]
debian: Fix changelog so sbuild will work

Fix the changelog so a sbuild issued for the
creation of a .deb works.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoMerge pull request #99 from opensourcerouting/rename-fixes
Donald Sharp [Fri, 20 Jan 2017 16:22:33 +0000 (11:22 -0500)]
Merge pull request #99 from opensourcerouting/rename-fixes

Rename Quagga->FRR Fixes

8 years agoProtobuf: Update library name to reflect name change to FRR 99/head
Martin Winter [Thu, 19 Jan 2017 19:58:55 +0000 (02:58 +0700)]
Protobuf: Update library name to reflect name change to FRR

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoDebian/Doc: Fix correct reference about FRR fork from Quagga
Martin Winter [Thu, 19 Jan 2017 19:53:21 +0000 (02:53 +0700)]
Debian/Doc: Fix correct reference about FRR fork from Quagga

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agobuildtest.sh: Change name from quagga to frr
Martin Winter [Thu, 19 Jan 2017 17:36:29 +0000 (00:36 +0700)]
buildtest.sh: Change name from quagga to frr

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoDoc: Update URL to freerangerouting.org
Martin Winter [Thu, 19 Jan 2017 17:34:03 +0000 (00:34 +0700)]
Doc: Update URL to freerangerouting.org

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoDoc: Update Bug Reporting instructions to FreeRangeRouting and Github Issue Tracker
Martin Winter [Thu, 19 Jan 2017 17:31:01 +0000 (00:31 +0700)]
Doc: Update Bug Reporting instructions to FreeRangeRouting and Github Issue Tracker

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoredhat: Fix spec file changelog to use automatic version for last entry
Martin Winter [Thu, 19 Jan 2017 17:10:48 +0000 (00:10 +0700)]
redhat: Fix spec file changelog to use automatic version for last entry

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoSolaris Package files: Rename Quagga to FRR
Martin Winter [Thu, 19 Jan 2017 17:07:02 +0000 (00:07 +0700)]
Solaris Package files: Rename Quagga to FRR

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agorelease: FRR 2.0-rc1 frr-2.0-rc1
David Lamparter [Thu, 19 Jan 2017 16:45:51 +0000 (17:45 +0100)]
release: FRR 2.0-rc1

8 years agoMerge pull request #83 from LabNConsulting/working/2.0/patch-set/2-no-vrf
David Lamparter [Thu, 19 Jan 2017 16:35:05 +0000 (17:35 +0100)]
Merge pull request #83 from LabNConsulting/working/2.0/patch-set/2-no-vrf

Fix a number of VPN/Encap SAFI related issues (no VRF CLI changes)

8 years agobgpd: fix typo in VPN next hop V6 test (Issue #71) 83/head
Lou Berger [Wed, 18 Jan 2017 16:36:32 +0000 (11:36 -0500)]
bgpd: fix typo in VPN next hop V6 test (Issue #71)
      On top of:
      bgpd: allow VPN next hop to be different AFI than NLRI next
           hop (Issue #71)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agolib: additional patch for 496e83a
Quentin Young [Wed, 18 Jan 2017 06:09:26 +0000 (06:09 +0000)]
lib: additional patch for 496e83a

Fixes a couple off-by-ones introduced in previous commit.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
[cherry-picked from master d1e4a518e6f55ccf80c67b58d16eeb1cbf5923e3]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agobgpd: use address-family <afi> <safi> in show running for vpn&encap (Issue #80)
Lou Berger [Tue, 17 Jan 2017 18:45:46 +0000 (13:45 -0500)]
bgpd: use address-family <afi> <safi> in show running for vpn&encap (Issue #80)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd rfapi: fix issue where advertised prefixes were not being disambiguated
Lou Berger [Sun, 15 Jan 2017 21:43:20 +0000 (16:43 -0500)]
bgpd rfapi: fix issue where advertised prefixes were not being disambiguated
        by RD

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd rfapi: use VN as nexthop for MPLS tunnels too
Lou Berger [Fri, 13 Jan 2017 15:18:48 +0000 (10:18 -0500)]
bgpd rfapi: use VN as nexthop for MPLS tunnels too
     Also minor show format cleanup

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: allow VPN next hop to be different AFI than NLRI next hop (Issue #71)
Lou Berger [Sat, 14 Jan 2017 13:34:22 +0000 (08:34 -0500)]
bgpd: allow VPN next hop to be different AFI than NLRI next hop (Issue #71)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: fix RD stomping by update group code (Issue #71)
Lou Berger [Sat, 14 Jan 2017 14:46:54 +0000 (09:46 -0500)]
bgpd: fix RD stomping by update group code (Issue #71)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: partial revert of vpn/encap safi show changes (Issue #14)
Lou Berger [Sun, 15 Jan 2017 16:58:06 +0000 (11:58 -0500)]
bgpd: partial revert of vpn/encap safi show changes (Issue #14)
      To remove commands duplicated in bgp_mplsvpn/_encap
      Also until vpn/encap specific show pieces are merged into
      generic afi/safi show.

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoMerge pull request #78 from pguibert6WIND/fix_str2prefix_rd_as4
Donald Sharp [Tue, 17 Jan 2017 17:56:46 +0000 (12:56 -0500)]
Merge pull request #78 from pguibert6WIND/fix_str2prefix_rd_as4

bgpd: str2prefix_rd support for AS4 format

8 years agobgpd: avoid recalculating as_val value in str2prefix_rd 76/head 78/head
Philippe Guibert [Tue, 17 Jan 2017 16:51:40 +0000 (17:51 +0100)]
bgpd: avoid recalculating as_val value in str2prefix_rd

This is an optimisation that consists in avoiding calling twice atol()
function when converting an ext. community to an AS4 byte or a standard AS byte value.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
8 years agoMerge pull request #77 from pguibert6WIND/frr_6wind_vpnv6fix_1
Donald Sharp [Tue, 17 Jan 2017 13:38:49 +0000 (08:38 -0500)]
Merge pull request #77 from pguibert6WIND/frr_6wind_vpnv6fix_1

bgpd: fix nexthop comparison for nexthop vpnv6 attribute

8 years agobgpd: fix nexthop comparison for nexthop vpnv6 attribute 77/head
Philippe Guibert [Fri, 6 Jan 2017 12:35:40 +0000 (13:35 +0100)]
bgpd: fix nexthop comparison for nexthop vpnv6 attribute

As nexthop attribute for vpnv6 also contains a blank RD and a blank tag,
the IPv6 address length increases from 16 to 24 bytes. The same was
observed for vpnv4 nexthop, but was missing for VPNv6.
The same is done for martian nexthop debugging.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
8 years agobgpd: str2prefix_rd support for AS4 format
Philippe Guibert [Mon, 24 Oct 2016 13:16:36 +0000 (15:16 +0200)]
bgpd: str2prefix_rd support for AS4 format

This commit improves the ability for str2prefix_rd command to support
AS4 format. Until now, only AS2 format and IP format was supported.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
8 years agoMerge pull request #67 from opensourcerouting/stable-test-fixes
Donald Sharp [Fri, 13 Jan 2017 13:51:14 +0000 (08:51 -0500)]
Merge pull request #67 from opensourcerouting/stable-test-fixes

stable/2.0 test fixes

8 years agolib: limit size of vty buffer to 4096 bytes
Quentin Young [Tue, 10 Jan 2017 23:33:50 +0000 (23:33 +0000)]
lib: limit size of vty buffer to 4096 bytes

This removes the automatic resizing of the vty input buffer and places a
hard size cap of 4096 bytes. It also fixes a potentially unsafe strcpy.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
[cherry-picked from master 2af38873d89e20bd039255418366c1601aa99e64]

8 years agotests: fix mis-fixed format string 67/head
David Lamparter [Thu, 15 Dec 2016 23:14:55 +0000 (00:14 +0100)]
tests: fix mis-fixed format string

PRIu64 is "u", we need "x", so PRIx64...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Cc: Donald Sharp <sharpd@cumulusnetworks.com>
[cherry-picked from master eed831e065694b3746896b126f6ad47548ea9dc0]

8 years agoMerge pull request #38 from donaldsharp/stable_ospf6_fix
David Lamparter [Fri, 13 Jan 2017 10:32:17 +0000 (11:32 +0100)]
Merge pull request #38 from donaldsharp/stable_ospf6_fix

ospf6d: resolve problem with area range lsid creation

8 years agotests: fix exit <> return mix-up in dejagnu
David Lamparter [Thu, 15 Dec 2016 23:09:46 +0000 (00:09 +0100)]
tests: fix exit <> return mix-up in dejagnu

exit 0 exits the entire testrunner... Oops.
Also, "unresolved" breaks too many things, so make this a pass.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
[cherry-picked from master e988dfd35b0d9df437ac043a613472437c8842e6]

8 years agotests: ignore stderr for expect
David Lamparter [Fri, 13 Jan 2017 10:23:18 +0000 (11:23 +0100)]
tests: ignore stderr for expect

expect redirects both stdout and stderr to its input.  This causes
serious problems when libzebra prints log messages to stderr, which are
then asynchronously inserted in the middle of lines of stdout test
output.  Ultimately this makes testbgpmpattr fail on FreeBSD.

(The stdio buffering seems to be slightly different on FreeBSD,
triggering the bug.)

Just ignore stderr for expect.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agoMerge pull request #65 from LabNConsulting/working/2.0/afi-safi-vty/c
Donald Sharp [Thu, 12 Jan 2017 17:54:30 +0000 (12:54 -0500)]
Merge pull request #65 from LabNConsulting/working/2.0/afi-safi-vty/c

Updated: stable/2.0 pull to pick up bgp afi/safi vty changes (Issues #14 and #61)

8 years agobgpd: convert 'show_ip_bgp_vpnv4' to afi/safi form (Issue #61) 65/head
Lou Berger [Thu, 12 Jan 2017 14:36:24 +0000 (09:36 -0500)]
bgpd: convert 'show_ip_bgp_vpnv4' to afi/safi form (Issue #61)

8 years agobgpd: remove code contained by ifdef KEEP_OLD_VPNV4_COMMANDS
Lou Berger [Thu, 12 Jan 2017 13:54:22 +0000 (08:54 -0500)]
bgpd: remove code contained by ifdef KEEP_OLD_VPNV4_COMMANDS

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: conditionally compile out old vpnv4 syntax (Issue #61)
Lou Berger [Tue, 10 Jan 2017 20:53:03 +0000 (15:53 -0500)]
bgpd: conditionally compile out old vpnv4 syntax (Issue #61)
      (under ifdef KEEP_OLD_VPNV4_COMMANDS)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: restore wildcard handling in show summary (Issue#14)
Lou Berger [Fri, 6 Jan 2017 23:25:56 +0000 (18:25 -0500)]
bgpd: restore wildcard handling in show summary (Issue#14)
      Includes more branch specific afi/safi changes

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: restore some missing afi/safi commands (Issue #14)
Lou Berger [Fri, 6 Jan 2017 15:50:31 +0000 (10:50 -0500)]
bgpd: restore some missing afi/safi commands (Issue #14)
      Added defines and parse utility functions
      Fix vty code that treated vpn&encap as AFIs
      and some other related vty printing/handline issues
      Note: Includes branch specific changes (due to new parser)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoMerge pull request #51 from donaldsharp/atol_borked
Olivier Dugeon [Mon, 9 Jan 2017 14:26:41 +0000 (15:26 +0100)]
Merge pull request #51 from donaldsharp/atol_borked

Atol borked

8 years agoMerge pull request #47 from donaldsharp/valgrind
Donald Sharp [Mon, 9 Jan 2017 14:17:17 +0000 (09:17 -0500)]
Merge pull request #47 from donaldsharp/valgrind

Valgrind

8 years agoMerge pull request #53 from opensourcerouting/fixes/isis-for-stable
Donald Sharp [Fri, 6 Jan 2017 20:13:43 +0000 (15:13 -0500)]
Merge pull request #53 from opensourcerouting/fixes/isis-for-stable

isisd: clean up own LSPs correctly on update

8 years agoisisd: clean up own LSPs correctly on update 53/head
Christian Franke [Fri, 6 Jan 2017 19:19:40 +0000 (20:19 +0100)]
isisd: clean up own LSPs correctly on update

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
8 years agoMerge pull request #50 from mwinter-osr/redhat-pkg-rename
Donald Sharp [Fri, 6 Jan 2017 17:41:43 +0000 (12:41 -0500)]
Merge pull request #50 from mwinter-osr/redhat-pkg-rename

Redhat pkg rename

8 years agozebra: Allow tag values greater than 2 billion on arm 51/head
Donald Sharp [Fri, 6 Jan 2017 17:25:55 +0000 (12:25 -0500)]
zebra: Allow tag values greater than 2 billion on arm

Due to the usage of atol, values that are larger than
2 billion on arm for tag are not converted correctly.

Ticket: CM-14099
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agobgpd: Allow 'neighbor X local-as Y' to have large values
Donald Sharp [Fri, 6 Jan 2017 17:24:03 +0000 (12:24 -0500)]
bgpd: Allow 'neighbor X local-as Y' to have large values

On ARM platforms specifying a local-as greater than
2 billion causes issues due to atoi usage.

Ticket: CM-14019
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoconfigure.ac: rename red hat spec from quagga.spec to frr.spec 50/head
Martin Winter [Fri, 6 Jan 2017 17:12:16 +0000 (00:12 +0700)]
configure.ac: rename red hat spec from quagga.spec to frr.spec

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agocumulus files: Rename Project from Quagga to FRR
Martin Winter [Fri, 6 Jan 2017 17:10:57 +0000 (00:10 +0700)]
cumulus files: Rename Project from Quagga to FRR

Default files used by redhat package scripts

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoredhat: rename project from Quagga to FRR
Martin Winter [Fri, 6 Jan 2017 16:45:13 +0000 (23:45 +0700)]
redhat: rename project from Quagga to FRR

Rename all instances of Quagga to FRR in red hat package files

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoMerge pull request #41 from donaldsharp/quagga_to_frr
Martin Winter [Fri, 6 Jan 2017 13:07:41 +0000 (20:07 +0700)]
Merge pull request #41 from donaldsharp/quagga_to_frr

Quagga to frr - Rename of Quagga to FRR (FreeRangeRouting)

8 years agoospfd: Stop attempt to read beyond end of argv 47/head
Donald Sharp [Thu, 5 Jan 2017 17:52:18 +0000 (12:52 -0500)]
ospfd: Stop attempt to read beyond end of argv

When unconfiguring certain commands in ospf, you can
run into situations where we attempt to read beyond
the end of a argv[] vector created.  On certain platforms
this will crash it.

Ticket: CM-14090
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agolib: Stop potential uninitialized memory access
Donald Sharp [Thu, 5 Jan 2017 17:44:23 +0000 (12:44 -0500)]
lib: Stop potential uninitialized memory access

VRF_UNKNOWN = MAX_INT16_T

The vrf macros to determine where in the bitmap something belongs
assume that the valid values of a vrf are 0 - (MAX_INT16 - 1)
so when they attempt to determine where to look in the bitmap
for VRF_DEFAULT, we can get invalid reads of memory.

This happens because bgp can create vrf's with VRF_UNKNOWN
when we get configuration for a vrf before we've been actually
created in zebra.

Ticket: CM-14090
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoMerge pull request #45 from opensourcerouting/fixes/isis-for-stable
Donald Sharp [Fri, 6 Jan 2017 00:32:30 +0000 (19:32 -0500)]
Merge pull request #45 from opensourcerouting/fixes/isis-for-stable

isisd: don't generate LSPs with LSP-ID zero on is-type change

8 years agoisisd: don't generate LSPs with LSP-ID zero on is-type change 45/head
Christian Franke [Thu, 5 Jan 2017 19:22:31 +0000 (20:22 +0100)]
isisd: don't generate LSPs with LSP-ID zero on is-type change

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
8 years agodebian: Convert Quagga -> Frr 41/head
Donald Sharp [Wed, 4 Jan 2017 14:25:20 +0000 (09:25 -0500)]
debian: Convert Quagga -> Frr

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agolib: Update ZAPI to version 4 and HEADER_MARKER to 254
Donald Sharp [Wed, 4 Jan 2017 13:03:14 +0000 (08:03 -0500)]
lib: Update ZAPI to version 4 and HEADER_MARKER to 254

Update the ZEBRA_HEADER_MARKER to 254.  This will differentiate
ourselves from Quagga.  Zebra should not listen to people not
properly using the right programs now.

Update the ZAPI version number to 4.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agodoc: Fixup quagga -> frr
Donald Sharp [Wed, 4 Jan 2017 12:53:30 +0000 (07:53 -0500)]
doc: Fixup quagga -> frr

Modify the documentation so that it talks about FRR instead of Quagga.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agowatchfrr: Rename watchquagga -> watchfrr
Donald Sharp [Wed, 4 Jan 2017 01:13:02 +0000 (20:13 -0500)]
watchfrr: Rename watchquagga -> watchfrr

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoospf6d: resolve problem with area range lsid creation 38/head
Don Slice [Fri, 16 Dec 2016 16:53:30 +0000 (08:53 -0800)]
ospf6d: resolve problem with area range lsid creation

The problem reported was that routers downstream from the ABR would have
prefixes in the IPv6 rib that should have been summarized.  Testing showed
that the prefixes were absent in the lsdb but not removed from the rib.

The problem (and others) stemmed from determining the link-state id to use
for the area-range statement only from other entries in the range-table. Since
the area range statement creates inter-prefix LSAs (summaries) which are in all
aspects identical to other inter-prefix LSAs, the number space for the lsid
needs to be unique across all inter-prefix LSAs, not just unique between area
range statements.  This fix removes the use of range-table specific lsids and
acquires the lsid just as any other inter-prefix LSA.

Ticket: CM-13626
Signed-off-by: Don Slice
Reviewed By: CCR-5489
Testing Done: Manual testing, repeated runs of the test that previously failed,
ospf-smoke

8 years agoMerge pull request #37 from LabNConsulting/working/2.0/patch-set-170102a
David Lamparter [Tue, 3 Jan 2017 15:44:44 +0000 (16:44 +0100)]
Merge pull request #37 from LabNConsulting/working/2.0/patch-set-170102a

Working/2.0/patch set 170102a

8 years agoMerge pull request #28 from opensourcerouting/dev/osr/rename-part1
Donald Sharp [Tue, 3 Jan 2017 15:44:11 +0000 (10:44 -0500)]
Merge pull request #28 from opensourcerouting/dev/osr/rename-part1

rename, part1

8 years agolib: Partial Revert of 4ecc09d and modify zclient connect behavior 37/head
Donald Sharp [Mon, 12 Dec 2016 12:59:16 +0000 (07:59 -0500)]
lib: Partial Revert of 4ecc09d and modify zclient connect behavior

Commit 43cc09d has been shown to cause several issues with clients
connecting.

Partial revert, since I wanted to keep the debug logs added
for that commit, as well remove the piece of code that
stops attempting to connect to zebra.  If we've failed
a bunch of times, there is nothing wrong with continuing
to do so once every 60 seconds.  I've debug guarded
the connect failure for those people running bgp
without zebra.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
8 years agobgpd: fix ecommunity hash related leak
Lou Berger [Fri, 30 Dec 2016 21:48:29 +0000 (16:48 -0500)]
bgpd: fix ecommunity hash related leak

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgp: Use intern/unintern for encap to fix valgrind identified memory leak
Lou Berger [Sat, 17 Dec 2016 22:58:33 +0000 (17:58 -0500)]
bgp: Use intern/unintern for encap to fix valgrind identified memory leak

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agorfapi: pickup recent changes
Lou Berger [Fri, 4 Nov 2016 13:30:07 +0000 (09:30 -0400)]
rfapi: pickup recent changes
       expose bgp_rfapi_get_group_by_lni_label for use by rfp
       add EVPN Ethernet Tag (VID) RT
       ensure as is init'ed
       fix spelling of information

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgp: first pass at restoring missing vpn&encap show commands (issue#14)
Lou Berger [Sun, 18 Dec 2016 18:45:20 +0000 (13:45 -0500)]
bgp: first pass at restoring missing vpn&encap show commands (issue#14)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoBGP: deal with vnc related string ambiguities (issue #9)
G. Paul Ziemba [Fri, 4 Nov 2016 16:47:36 +0000 (09:47 -0700)]
BGP: deal with vnc related string ambiguities (issue #9)
    - "redist foo" parsing modified to check for foo==vnc and foo==vnc-direct
      instead of just leading 'v' character
    - string designating ZEBRA_ROUTE_VNC_DIRECT changed from "vpn" to "vnc-direct"
    - route_types.pl parser recognizes 7th field to restrict availability
      of a route type in the redist command to specific daemons
    - restrict "vnc-direct" to bgpd only (doesn't make sense elsewhere)
    - vnc documentation updated to match

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agolib/command.c: fix leak id'ed by valgrind
Lou Berger [Sat, 17 Dec 2016 18:26:03 +0000 (13:26 -0500)]
lib/command.c: fix leak id'ed by valgrind

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: fix unitialized value check id'ed by valgrind
Lou Berger [Sat, 17 Dec 2016 18:20:59 +0000 (13:20 -0500)]
bgpd: fix unitialized value check id'ed by valgrind

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoprefix.c: replace free with XFREE for memory allocated with XMALLOC
Lou Berger [Mon, 7 Nov 2016 12:33:15 +0000 (07:33 -0500)]
prefix.c: replace free with XFREE for memory allocated with XMALLOC

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoMerge pull request #31 from opensourcerouting/freebsd-route-update-fix-for-2.0
David Lamparter [Wed, 28 Dec 2016 14:49:24 +0000 (15:49 +0100)]
Merge pull request #31 from opensourcerouting/freebsd-route-update-fix-for-2.0

Fixes #20

8 years agozebra: remove unused variable 31/head
Renato Westphal [Fri, 16 Dec 2016 14:51:07 +0000 (12:51 -0200)]
zebra: remove unused variable

It looks like 'nexthop_fib_num' has been lingering around since 2003
without any use. Remove it.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
8 years agodoc: add the ldpd vty port to the SERVICES file
Renato Westphal [Thu, 15 Dec 2016 18:24:54 +0000 (16:24 -0200)]
doc: add the ldpd vty port to the SERVICES file

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
8 years agozebra: fix FIB route updates on *BSD
Renato Westphal [Fri, 16 Dec 2016 12:48:37 +0000 (10:48 -0200)]
zebra: fix FIB route updates on *BSD

On *BSD, we update a route in the FIB by removing the old one and then
installing the new version.

With that said, on kernel_route_rib() we need to provide a pointer to
both the old version and the new version of the route.

We were, however, passing a pointer to the new version to both the
'old' and 'new' parameters. This is not a problem on Linux, which uses
NLM_F_REPLACE to update routes, but it breaks route updates on *BSD
because the 'old' parameter points to a route that is not installed in
the kernel. The kernel_route_rib() function then fails to uninstall the
supposedly 'old' route and can fail to install the new version as well if
the kernel doesn't support ECMP (e.g. FreeBSD with default configuration).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
8 years agobuild: rename (2 of ?): route_types macros 28/head
David Lamparter [Tue, 20 Dec 2016 17:31:42 +0000 (18:31 +0100)]
build: rename (2 of ?): route_types macros

All of the autogenerated macros in lib/route_types.pl are now called
FRR_* instead of QUAGGA_*.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agobuild: replace some hardcoding with ./configure
David Lamparter [Tue, 20 Dec 2016 17:10:30 +0000 (18:10 +0100)]
build: replace some hardcoding with ./configure

Several places have paths and names that can change hardcoded, e.g. the
package name and the /var/run path.  This fixes a few of them, there's
still some to do.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agobuild: remove INSTALL.quagga.txt
David Lamparter [Tue, 20 Dec 2016 16:59:13 +0000 (17:59 +0100)]
build: remove INSTALL.quagga.txt

It's horribly outdated & wrong info is worse than none.
doc/install.texi should probably be updated instead.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agobuild: more renaming in configure.ac
David Lamparter [Wed, 14 Dec 2016 19:22:59 +0000 (20:22 +0100)]
build: more renaming in configure.ac

8 years agobuild: rename (1 of ?): configure.ac + preproc
David Lamparter [Wed, 14 Dec 2016 18:30:44 +0000 (19:30 +0100)]
build: rename (1 of ?): configure.ac + preproc

This replaces Quagga -> FRR in most configure.ac settings as well as
a handful of preprocessor macros in the source code.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agodoc: use config values from configure in manpages
David Lamparter [Wed, 14 Dec 2016 19:22:25 +0000 (20:22 +0100)]
doc: use config values from configure in manpages

This makes the actual change to the manpages to get ./configure effects
applied into them.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agodoc: rename manpages to ".in" for autoconf
David Lamparter [Wed, 14 Dec 2016 19:24:34 +0000 (20:24 +0100)]
doc: rename manpages to ".in" for autoconf

The manpages contain references to installation paths and thus should be
preprocessed by ./configure to get the actual paths.

This commit is an exact-rename so the changes for the preprocessing are
easier to review (diffs in renames are hard to read...)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>