]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoredhat: remove obsolete %clean section
Ruben Kerkhof [Wed, 20 Jun 2018 13:34:39 +0000 (15:34 +0200)]
redhat: remove obsolete %clean section

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove obsolete BuildRoot tag
Ruben Kerkhof [Wed, 20 Jun 2018 13:33:48 +0000 (15:33 +0200)]
redhat: remove obsolete BuildRoot tag

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: use one BuildRequires per line
Ruben Kerkhof [Wed, 20 Jun 2018 13:33:01 +0000 (15:33 +0200)]
redhat: use one BuildRequires per line

Makes for easier diffing

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove BuildRequires for patch
Ruben Kerkhof [Wed, 20 Jun 2018 13:29:16 +0000 (15:29 +0200)]
redhat: remove BuildRequires for patch

Nothing seems to need it

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: don't Requires initscript on systemd based distros
Ruben Kerkhof [Wed, 20 Jun 2018 13:27:10 +0000 (15:27 +0200)]
redhat: don't Requires initscript on systemd based distros

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove superfluous Requires for json-c
Ruben Kerkhof [Wed, 20 Jun 2018 13:25:42 +0000 (15:25 +0200)]
redhat: remove superfluous Requires for json-c

json-c-devel is already a BuildRequires, and rpm will add the Requires
itself.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: indent some stuff in spec file
Ruben Kerkhof [Wed, 20 Jun 2018 13:23:27 +0000 (15:23 +0200)]
redhat: indent some stuff in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: replace hardcoded directory
Ruben Kerkhof [Wed, 20 Jun 2018 12:49:08 +0000 (14:49 +0200)]
redhat: replace hardcoded directory

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: use 'service' command to restart frr
Ruben Kerkhof [Wed, 20 Jun 2018 12:32:26 +0000 (14:32 +0200)]
redhat: use 'service' command to restart frr

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: replace /etc/ with _sysconfdir where we can
Ruben Kerkhof [Wed, 20 Jun 2018 12:29:39 +0000 (14:29 +0200)]
redhat: replace /etc/ with _sysconfdir where we can

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: stop overriding _localstatedir
Ruben Kerkhof [Wed, 20 Jun 2018 12:19:11 +0000 (14:19 +0200)]
redhat: stop overriding _localstatedir

It is defined by rpm and points at /var

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove some defaults from configure options
Ruben Kerkhof [Wed, 20 Jun 2018 12:14:37 +0000 (14:14 +0200)]
redhat: remove some defaults from configure options

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: stop overriding _sysconfdir
Ruben Kerkhof [Wed, 20 Jun 2018 12:08:28 +0000 (14:08 +0200)]
redhat: stop overriding _sysconfdir

This macro is defined by rpm and points at /etc.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove enable-poll option from specfile
Ruben Kerkhof [Wed, 20 Jun 2018 12:03:37 +0000 (14:03 +0200)]
redhat: remove enable-poll option from specfile

It was removed from configure.ac in 16764760

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoMerge pull request #2485 from pacovn/cppcheck_ldpd_redundant_condition
Russ White [Wed, 20 Jun 2018 11:52:37 +0000 (07:52 -0400)]
Merge pull request #2485 from pacovn/cppcheck_ldpd_redundant_condition

ldpd: redundant condition (cppcheck)

5 years agoMerge pull request #2461 from pacovn/Coverity_1399380_Untrusted_value_as_argument
Russ White [Wed, 20 Jun 2018 11:41:06 +0000 (07:41 -0400)]
Merge pull request #2461 from pacovn/Coverity_1399380_Untrusted_value_as_argument

bgpd: Untrusted argument (Coverity 1399380)

5 years agoMerge pull request #2495 from pacovn/fixme_all_digit
Russ White [Wed, 20 Jun 2018 11:38:19 +0000 (07:38 -0400)]
Merge pull request #2495 from pacovn/fixme_all_digit

bgpd, lib, ospfd, zebra: all_digit moved to frrstr

5 years agoMerge pull request #2496 from pacovn/fixme_group1
Russ White [Wed, 20 Jun 2018 11:37:27 +0000 (07:37 -0400)]
Merge pull request #2496 from pacovn/fixme_group1

isisd, zebra: FIXME fixes (grouped)

5 years agoMerge pull request #2499 from donaldsharp/routemap_kisses
Russ White [Wed, 20 Jun 2018 11:19:31 +0000 (07:19 -0400)]
Merge pull request #2499 from donaldsharp/routemap_kisses

Some route-map prep

5 years agoMerge pull request #2500 from msablic/pim_doc2
Russ White [Wed, 20 Jun 2018 11:18:11 +0000 (07:18 -0400)]
Merge pull request #2500 from msablic/pim_doc2

doc: added parameters to two PIM commands

5 years agoMerge pull request #2446 from pacovn/Coverity_1452454_1452455_1452456_Out-of-bounds_a...
Russ White [Wed, 20 Jun 2018 11:14:49 +0000 (07:14 -0400)]
Merge pull request #2446 from pacovn/Coverity_1452454_1452455_1452456_Out-of-bounds_access

ospfd: OoB access (Cov 1452454 1452455 1452456)

5 years agodoc: added parameters to two PIM commands
Mladen Sablic [Wed, 20 Jun 2018 09:48:15 +0000 (11:48 +0200)]
doc: added parameters to two PIM commands

ip igmp join and mtrace have parameters which were missing from
the command spec.

Signed-off-by: Mladen Sablic <mladen.sablic@gmail.com>
5 years agobgpd, lib, zebra: Remove unnecessary return
Donald Sharp [Wed, 20 Jun 2018 01:18:33 +0000 (21:18 -0400)]
bgpd, lib, zebra: Remove unnecessary return

The route_map_walk_update_list callback function
never uses the return code, so just remove it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Don't expose a function that is never used
Donald Sharp [Wed, 20 Jun 2018 01:12:11 +0000 (21:12 -0400)]
lib: Don't expose a function that is never used

route_map_clear_updated is only used by routemap.c,
don't expose it too be used by the outside world.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agozebra: Add initial framework to keep track of changed route-maps
Donald Sharp [Wed, 20 Jun 2018 01:00:39 +0000 (21:00 -0400)]
zebra: Add initial framework to keep track of changed route-maps

Add some basic code for zebra to start to keep track
of route-maps that have changed.  At this point we
are not doing anything.  As we fix code to handle
route-maps better, code will be shifted around.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agopimd: Remove unused code
Donald Sharp [Wed, 20 Jun 2018 00:46:07 +0000 (20:46 -0400)]
pimd: Remove unused code

pim does not even use route-maps, remove the
unneded code.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd, lib, pimd: Remove unused variable.
Donald Sharp [Wed, 20 Jun 2018 00:44:15 +0000 (20:44 -0400)]
bgpd, lib, pimd: Remove unused variable.

route_map_mark_updated has a `int del_later` variable
that is passed in but never used.  Just remove it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoisisd, zebra: FIXME fixes
paco [Tue, 19 Jun 2018 16:22:01 +0000 (18:22 +0200)]
isisd, zebra: FIXME fixes

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agobgpd, lib, ospfd, zebra: all_digit moved to frrstr
paco [Tue, 19 Jun 2018 15:59:53 +0000 (17:59 +0200)]
bgpd, lib, ospfd, zebra: all_digit moved to frrstr

This solves a pending FIXME

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2459 from pacovn/Coverity_1469898_Uninitialized_scalar_variable
Quentin Young [Tue, 19 Jun 2018 15:15:13 +0000 (11:15 -0400)]
Merge pull request #2459 from pacovn/Coverity_1469898_Uninitialized_scalar_variable

lib: uninitialized variable (Coverity 1469898)

5 years agoMerge pull request #2373 from rubenk/specfile-cleanups
Martin Winter [Tue, 19 Jun 2018 14:17:03 +0000 (07:17 -0700)]
Merge pull request #2373 from rubenk/specfile-cleanups

Red Hat spec file cleanup

5 years agobgpd: Untrusted argument (Coverity 1399380)
paco [Fri, 15 Jun 2018 13:55:03 +0000 (15:55 +0200)]
bgpd: Untrusted argument (Coverity 1399380)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2445 from ppmathis/feature/bgp-pg-overrides
Russ White [Tue, 19 Jun 2018 12:20:31 +0000 (08:20 -0400)]
Merge pull request #2445 from ppmathis/feature/bgp-pg-overrides

bgpd: Improve peer-group override implementation

5 years agoMerge pull request #2450 from ppmathis/bugfix/bgp-filtered-routes
Russ White [Tue, 19 Jun 2018 11:37:42 +0000 (07:37 -0400)]
Merge pull request #2450 from ppmathis/bugfix/bgp-filtered-routes

bgpd: Fix crash when showing filtered routes

5 years agoMerge pull request #2465 from qlyoung/fix-build-am-cppflags-warning
Russ White [Tue, 19 Jun 2018 11:31:43 +0000 (07:31 -0400)]
Merge pull request #2465 from qlyoung/fix-build-am-cppflags-warning

tests: fixup minor autotools nit

5 years agoMerge pull request #2468 from qlyoung/docuser
Russ White [Tue, 19 Jun 2018 11:31:10 +0000 (07:31 -0400)]
Merge pull request #2468 from qlyoung/docuser

doc: update workflow.rst

5 years agoMerge pull request #2470 from chiragshah6/mdev
Russ White [Tue, 19 Jun 2018 11:29:13 +0000 (07:29 -0400)]
Merge pull request #2470 from chiragshah6/mdev

zebra: Hide default vrf instance of l3vni cmd

5 years agoMerge pull request #2474 from donaldsharp/vty_thread_cancel_writes
Russ White [Tue, 19 Jun 2018 11:28:18 +0000 (07:28 -0400)]
Merge pull request #2474 from donaldsharp/vty_thread_cancel_writes

Add 'show thread poll'

5 years agoMerge pull request #2478 from pacovn/Coverity_1408766_Dereference_after_null_check
Russ White [Tue, 19 Jun 2018 11:21:42 +0000 (07:21 -0400)]
Merge pull request #2478 from pacovn/Coverity_1408766_Dereference_after_null_check

bgpd: null check (Coverity 1408766)

5 years agoMerge pull request #2479 from dslicenc/zebra-vrf-statics
Russ White [Tue, 19 Jun 2018 11:19:39 +0000 (07:19 -0400)]
Merge pull request #2479 from dslicenc/zebra-vrf-statics

zebra: re-install static routes needed vrf when the vrf intf comes up

5 years agoMerge pull request #2481 from pacovn/security_vpn_null_check
Russ White [Tue, 19 Jun 2018 11:19:00 +0000 (07:19 -0400)]
Merge pull request #2481 from pacovn/security_vpn_null_check

bgpd: vpn null check

5 years agoMerge pull request #2483 from pacovn/clang_scan_bgpd_updgrp_deref
Russ White [Tue, 19 Jun 2018 11:18:13 +0000 (07:18 -0400)]
Merge pull request #2483 from pacovn/clang_scan_bgpd_updgrp_deref

bgpd: null check (Clang scan-build)

5 years agoMerge pull request #2491 from pacovn/cppcheck_no_effect
Russ White [Tue, 19 Jun 2018 11:15:07 +0000 (07:15 -0400)]
Merge pull request #2491 from pacovn/cppcheck_no_effect

eigrpd, isisd, lib, ospfd: no effect (cppcheck)

5 years agoMerge pull request #2492 from pacovn/cppcheck_security1
Russ White [Tue, 19 Jun 2018 11:14:19 +0000 (07:14 -0400)]
Merge pull request #2492 from pacovn/cppcheck_security1

eigrpd, lib, tests, vtysh: security (cppcheck)

5 years agoeigrpd, lib, tests, vtysh: security (cppcheck)
paco [Tue, 19 Jun 2018 08:40:56 +0000 (10:40 +0200)]
eigrpd, lib, tests, vtysh: security (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoeigrpd, isisd, lib, ospfd: no effect (cppcheck)
paco [Tue, 19 Jun 2018 08:17:03 +0000 (10:17 +0200)]
eigrpd, isisd, lib, ospfd: no effect (cppcheck)

Assignment of function parameter has no effect outside the function.

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoredhat: fix else cases in spec file
Ruben Kerkhof [Fri, 8 Jun 2018 18:51:48 +0000 (20:51 +0200)]
redhat: fix else cases in spec file

As pointed out during review, disable the options when the macros are
false.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: spec file: specify file only once
Ruben Kerkhof [Tue, 5 Jun 2018 15:19:33 +0000 (17:19 +0200)]
redhat: spec file: specify file only once

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: spec file: no need for custom attr for service file
Ruben Kerkhof [Tue, 5 Jun 2018 15:19:06 +0000 (17:19 +0200)]
redhat: spec file: no need for custom attr for service file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: add missing dependencies on chkconfig in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:18:21 +0000 (17:18 +0200)]
redhat: add missing dependencies on chkconfig in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove a few superfluous Requires from spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:15:28 +0000 (17:15 +0200)]
redhat: remove a few superfluous Requires from spec file

rpm adds these automatically

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove a few superfluous BuildRequires from spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:14:38 +0000 (17:14 +0200)]
redhat: remove a few superfluous BuildRequires from spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: depend on info package instead of binary in specfile
Ruben Kerkhof [Tue, 5 Jun 2018 15:13:32 +0000 (17:13 +0200)]
redhat: depend on info package instead of binary in specfile

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: install-info is not called from %pre in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:12:33 +0000 (17:12 +0200)]
redhat: install-info is not called from %pre in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove wrong comment from spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:11:07 +0000 (17:11 +0200)]
redhat: remove wrong comment from spec file

systemd support needs watchfrr

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: spec file: all supported Fedora versions use systemd
Ruben Kerkhof [Tue, 5 Jun 2018 15:10:13 +0000 (17:10 +0200)]
redhat: spec file: all supported Fedora versions use systemd

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: use default permissions for logrotate file in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:08:45 +0000 (17:08 +0200)]
redhat: use default permissions for logrotate file in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: spec file: we ship only one logrotate file
Ruben Kerkhof [Tue, 5 Jun 2018 15:08:17 +0000 (17:08 +0200)]
redhat: spec file: we ship only one logrotate file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: be consistent in adding ./configure options in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:05:56 +0000 (17:05 +0200)]
redhat: be consistent in adding ./configure options in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: use Github for SOURCE0 in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:04:29 +0000 (17:04 +0200)]
redhat: use Github for SOURCE0 in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: Use https for URL in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:03:44 +0000 (17:03 +0200)]
redhat: Use https for URL in spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: remove trailing whitespace from spec file
Ruben Kerkhof [Tue, 5 Jun 2018 15:02:42 +0000 (17:02 +0200)]
redhat: remove trailing whitespace from spec file

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoredhat: fix tabs vs spaces in spec file
Ruben Kerkhof [Tue, 5 Jun 2018 14:58:04 +0000 (16:58 +0200)]
redhat: fix tabs vs spaces in spec file

rpmlint reports:
redhat/frr.spec:282: W: mixed-use-of-spaces-and-tabs (spaces: line 13, tab: line 282)

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
5 years agoMerge pull request #2476 from pacovn/Coverity_1433544_Explicit_null_dereferenced
Lou Berger [Mon, 18 Jun 2018 20:59:26 +0000 (16:59 -0400)]
Merge pull request #2476 from pacovn/Coverity_1433544_Explicit_null_dereferenced

bgpd: null check (Coverity 143354414335431433542)

5 years agoMerge pull request #2482 from pacovn/clang_scan_bgpd_bgp_rpki_deref
Donald Sharp [Mon, 18 Jun 2018 20:09:56 +0000 (16:09 -0400)]
Merge pull request #2482 from pacovn/clang_scan_bgpd_bgp_rpki_deref

bgpd: null check (Clang scan-build)

5 years agobgpd: null check (Clang scan-build)
paco [Mon, 18 Jun 2018 14:38:23 +0000 (16:38 +0200)]
bgpd: null check (Clang scan-build)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2484 from pacovn/cppcheck_unused_vars
Donald Sharp [Mon, 18 Jun 2018 19:27:11 +0000 (15:27 -0400)]
Merge pull request #2484 from pacovn/cppcheck_unused_vars

eigrpd, lib: unused vars (cppcheck)

5 years agoMerge pull request #2486 from pacovn/cppcheck_fmt_validation
Donald Sharp [Mon, 18 Jun 2018 19:23:49 +0000 (15:23 -0400)]
Merge pull request #2486 from pacovn/cppcheck_fmt_validation

babeld, lib, ospfd, tests: fmt fixes (cppcheck)

5 years agoMerge pull request #2489 from pacovn/cppcheck_reduntant_pointer_op
Donald Sharp [Mon, 18 Jun 2018 19:16:55 +0000 (15:16 -0400)]
Merge pull request #2489 from pacovn/cppcheck_reduntant_pointer_op

ldpd: redundant pointer operation (cppcheck)

5 years agoMerge pull request #2488 from pacovn/cppcheck_nhrpd_limit_check
Donald Sharp [Mon, 18 Jun 2018 19:16:34 +0000 (15:16 -0400)]
Merge pull request #2488 from pacovn/cppcheck_nhrpd_limit_check

nhrpd: array limit check (cppcheck)

5 years agoMerge pull request #2487 from pacovn/cppcheck_redundant_memset
Donald Sharp [Mon, 18 Jun 2018 19:15:46 +0000 (15:15 -0400)]
Merge pull request #2487 from pacovn/cppcheck_redundant_memset

ospfd, pimd: redundant memset (cppcheck)

5 years agoMerge pull request #2490 from pacovn/cppcheck_unsigned_check
Donald Sharp [Mon, 18 Jun 2018 19:14:07 +0000 (15:14 -0400)]
Merge pull request #2490 from pacovn/cppcheck_unsigned_check

babeld, eigrpd, ospfd: unsigned negative check (cppcheck, grouped)

5 years agoMerge pull request #2417 from pacovn/Coverity_1399373_Structurally_dead_code
Donald Sharp [Mon, 18 Jun 2018 18:29:27 +0000 (14:29 -0400)]
Merge pull request #2417 from pacovn/Coverity_1399373_Structurally_dead_code

bgpd: dead code (Coverity 1399373)

5 years agoldpd: redundant condition (cppcheck)
paco [Mon, 18 Jun 2018 15:25:20 +0000 (17:25 +0200)]
ldpd: redundant condition (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agobabeld, eigrpd, ospfd: unsigned negative check
paco [Mon, 18 Jun 2018 17:07:24 +0000 (19:07 +0200)]
babeld, eigrpd, ospfd: unsigned negative check

After Cppcheck 1.72 feedback

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoldpd: redundant pointer operation (cppcheck)
paco [Mon, 18 Jun 2018 16:41:57 +0000 (18:41 +0200)]
ldpd: redundant pointer operation (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agonhrpd: array limit check (cppcheck)
paco [Mon, 18 Jun 2018 16:13:41 +0000 (18:13 +0200)]
nhrpd: array limit check (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoospfd, pimd: redundant memset (cppcheck)
paco [Mon, 18 Jun 2018 16:01:59 +0000 (18:01 +0200)]
ospfd, pimd: redundant memset (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2457 from pacovn/Coverity_1465491_Untrusted_value_as_argument
Donald Sharp [Mon, 18 Jun 2018 15:55:53 +0000 (11:55 -0400)]
Merge pull request #2457 from pacovn/Coverity_1465491_Untrusted_value_as_argument

pimd: Untrusted val as argument (Coverity 1465491)

5 years agoMerge pull request #2464 from pacovn/Coverity_1399309_Out-of-bounds_access
Donald Sharp [Mon, 18 Jun 2018 15:55:16 +0000 (11:55 -0400)]
Merge pull request #2464 from pacovn/Coverity_1399309_Out-of-bounds_access

isisd: out-of-bounds access (Coverity 1399309)

5 years agobabeld, lib, ospfd, tests: fmt fixes (cppcheck)
paco [Mon, 18 Jun 2018 15:49:58 +0000 (17:49 +0200)]
babeld, lib, ospfd, tests: fmt fixes (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoeigrpd, lib, vtysh: unused vars (cppcheck)
paco [Mon, 18 Jun 2018 15:12:27 +0000 (17:12 +0200)]
eigrpd, lib, vtysh: unused vars (cppcheck)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agobgpd: null check (Clang scan-build)
paco [Mon, 18 Jun 2018 14:27:02 +0000 (16:27 +0200)]
bgpd: null check (Clang scan-build)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agobgpd: null chk (Coverity 1433544 1433543 1433542)
paco [Mon, 18 Jun 2018 10:23:28 +0000 (12:23 +0200)]
bgpd: null chk (Coverity 1433544 1433543 1433542)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agobgpd: vpn null check
paco [Mon, 18 Jun 2018 13:52:57 +0000 (15:52 +0200)]
bgpd: vpn null check

Can be reproduced with following vtysh sequence (an intentionaly wrong
sequence):

['configure terminal\n router bgp 255 vrf l3vrf-6\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\nbgp router-id 10.255.255.1\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nlabel vpn export 45000\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nrd vpn export 255:5\n',
 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nredistribute isis\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nredistribute ospf\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nredistribute connected\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nimport vpn\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nexport vpn\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nrt vpn import 255:1\n', 'configure terminal\n router bgp 255 vrf l3vrf-6\n address-family ipv4\nrt vpn export 255:1\n'
]

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2466 from pacovn/clang_scan_bgpd_dereference1
Lou Berger [Mon, 18 Jun 2018 12:16:01 +0000 (08:16 -0400)]
Merge pull request #2466 from pacovn/clang_scan_bgpd_dereference1

bgpd: null check (Clang scan-build)

5 years agoMerge pull request #2456 from pacovn/Coverity_1399306_Out-of-bounds_access
Lou Berger [Mon, 18 Jun 2018 12:12:04 +0000 (08:12 -0400)]
Merge pull request #2456 from pacovn/Coverity_1399306_Out-of-bounds_access

bgpd: out-of-bounds access (Coverity 1399306)

5 years agozebra: re-install static routes needed vrf when the vrf intf comes up
Don Slice [Mon, 18 Jun 2018 11:38:45 +0000 (11:38 +0000)]
zebra: re-install static routes needed vrf when the vrf intf comes up

Problem reported that if the vrf device is taken down and then brought
back up, any static route referencing that vrf device was not
re-installed.  This fix runs back thru the static routes that
reference the vrf device coming up and re-install them.

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
5 years agobgpd: null check (Coverity 1408766)
paco [Mon, 18 Jun 2018 10:51:33 +0000 (12:51 +0200)]
bgpd: null check (Coverity 1408766)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agolib: A small optimization for the hash iterate and walk functions
Donald Sharp [Sat, 16 Jun 2018 23:27:41 +0000 (19:27 -0400)]
lib: A small optimization for the hash iterate and walk functions

When we are iterating through the hash, keep count of how many
we've called and if we have finished calling the hash->size
iterator times, then short-circuit and stop looping over
the entire array.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib, vtysh: Add 'show thread poll' command
Donald Sharp [Sat, 16 Jun 2018 22:12:54 +0000 (18:12 -0400)]
lib, vtysh: Add 'show thread poll' command

Add a 'show thread poll' command that displays the
poll information and fd's setup.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2467 from pacovn/Coverity_1399274_Dereference_after_null_check
Lou Berger [Sat, 16 Jun 2018 12:26:26 +0000 (08:26 -0400)]
Merge pull request #2467 from pacovn/Coverity_1399274_Dereference_after_null_check

bgpd: null check (Coverity 1399274)

5 years agobgpd: fix default RD value in running-cfg
Chirag Shah [Sat, 16 Jun 2018 04:11:16 +0000 (21:11 -0700)]
bgpd: fix default RD value in running-cfg

When bgp vrf is configured with non-default
RD value, config flag is set.
Upon removing non-default RD value the flag was not reset,
thus displayed default RD value in running-config.

router bgp 5550 vrf vrf1
 rd 45.0.2.2:5

Unset the RD configuration flag under bgp_vrf instance.

Ticket:CM-20206

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
5 years agozebra: Hide default vrf instance of l3vni cmd
Chirag Shah [Fri, 15 Jun 2018 22:23:27 +0000 (15:23 -0700)]
zebra: Hide default vrf instance of l3vni cmd

Hide following l3vni config from DEFAULT_VRF instance
until it is fully supported.

TORS1(config)# vni 2222456 prefix-routes-only

Ticket:CM-20572

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
5 years agodoc: update workflow.rst
Quentin Young [Fri, 15 Jun 2018 18:34:25 +0000 (18:34 +0000)]
doc: update workflow.rst

* Rewrap lines to 80 characters
* Update some portions to reflect current practices
* Clean up some formatting (indent, markup, etc)
* Reorganize sections on patch submission
* Remove link to nonexistent github wiki page

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolib: ignore user CFLAGS when building Clippy
Quentin Young [Fri, 15 Jun 2018 18:35:53 +0000 (18:35 +0000)]
lib: ignore user CFLAGS when building Clippy

Unfortunately user CFLAGS causes #define conflicts with #defines in
Python development headers, which causes build failures under certain
platforms when using -Werror.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobgpd: null check (Coverity 1399274)
paco [Fri, 15 Jun 2018 18:09:55 +0000 (20:09 +0200)]
bgpd: null check (Coverity 1399274)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agobgpd: null check (Clang scan-build)
paco [Fri, 15 Jun 2018 18:02:23 +0000 (20:02 +0200)]
bgpd: null check (Clang scan-build)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agotests: fixup minor autotools nit
Quentin Young [Fri, 15 Jun 2018 17:17:42 +0000 (17:17 +0000)]
tests: fixup minor autotools nit

Makes super strict builds fail due to a warning.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolib: uninitialized variable (Coverity 1469898)
paco [Fri, 15 Jun 2018 13:05:12 +0000 (15:05 +0200)]
lib: uninitialized variable (Coverity 1469898)

Signed-off-by: F. Aragon <paco@voltanet.io>