]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoMerge pull request #3023 from qlyoung/ultimate-warning-reference-cards-rename
David Lamparter [Fri, 14 Sep 2018 15:35:58 +0000 (17:35 +0200)]
Merge pull request #3023 from qlyoung/ultimate-warning-reference-cards-rename

warning reference cards rename

5 years ago*: style for EC replacements
Quentin Young [Thu, 13 Sep 2018 19:38:57 +0000 (19:38 +0000)]
*: style for EC replacements

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: LIB_[ERR|WARN] -> EC_LIB
Quentin Young [Thu, 13 Sep 2018 19:34:28 +0000 (19:34 +0000)]
*: LIB_[ERR|WARN] -> EC_LIB

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agozebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA
Quentin Young [Thu, 13 Sep 2018 19:21:05 +0000 (19:21 +0000)]
zebra: ZEBRA_[ERR|WARN] -> EC_ZEBRA

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agowatchfrr: WATCHFRR_[ERR|WARN] -> EC_WATCHFRR
Quentin Young [Thu, 13 Sep 2018 19:16:02 +0000 (19:16 +0000)]
watchfrr: WATCHFRR_[ERR|WARN] -> EC_WATCHFRR

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoripd: RIP_[ERR|WARN] -> EC_RIP
Quentin Young [Thu, 13 Sep 2018 19:14:28 +0000 (19:14 +0000)]
ripd: RIP_[ERR|WARN] -> EC_RIP

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agopimd: PIM_[ERR|WARN] -> EC_PIM
Quentin Young [Thu, 13 Sep 2018 19:12:58 +0000 (19:12 +0000)]
pimd: PIM_[ERR|WARN] -> EC_PIM

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoisisd: ISIS_[ERR|WARN] -> EC_ISIS
Quentin Young [Thu, 13 Sep 2018 19:12:08 +0000 (19:12 +0000)]
isisd: ISIS_[ERR|WARN] -> EC_ISIS

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoeigrpd: EIGRP_[ERR|WARN] -> EC_EIGRP
Quentin Young [Thu, 13 Sep 2018 19:04:11 +0000 (19:04 +0000)]
eigrpd: EIGRP_[ERR|WARN] -> EC_EIGRP

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobabeld: BABEL_[ERR|WARN] -> EC_BABEL
Quentin Young [Thu, 13 Sep 2018 19:01:19 +0000 (19:01 +0000)]
babeld: BABEL_[ERR|WARN] -> EC_BABEL

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agonhrpd: NHRP_[ERR|WARN] -> EC_NHRP
Quentin Young [Thu, 13 Sep 2018 18:59:07 +0000 (18:59 +0000)]
nhrpd: NHRP_[ERR|WARN] -> EC_NHRP

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoospfd: OSPF_[ERR|WARN] -> EC_OSPF
Quentin Young [Thu, 13 Sep 2018 18:56:04 +0000 (18:56 +0000)]
ospfd: OSPF_[ERR|WARN] -> EC_OSPF

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobgpd: BGP_[WARN|ERR] -> EC_BGP
Quentin Young [Thu, 13 Sep 2018 18:23:42 +0000 (18:23 +0000)]
bgpd: BGP_[WARN|ERR] -> EC_BGP

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoMerge pull request #3019 from pacovn/static_analysis__shadow_variables4
Donald Sharp [Thu, 13 Sep 2018 18:47:12 +0000 (14:47 -0400)]
Merge pull request #3019 from pacovn/static_analysis__shadow_variables4

bgpd lib ospf6d pbrd tests zebra: shadowing fixes

5 years agobgpd lib ospf6d pbrd tests zebra: shadowing fixes
F. Aragon [Thu, 13 Sep 2018 15:37:08 +0000 (17:37 +0200)]
bgpd lib ospf6d pbrd tests zebra: shadowing fixes

This fixes all remaining local variable shadowing cases

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #3007 from pacovn/static_analysis__shadow_variables2
Donald Sharp [Thu, 13 Sep 2018 12:38:32 +0000 (08:38 -0400)]
Merge pull request #3007 from pacovn/static_analysis__shadow_variables2

lib vtysh zebra: variable shadowing fixes

5 years agoMerge pull request #3006 from pacovn/static_analysis__shadow_variables1
Donald Sharp [Thu, 13 Sep 2018 12:37:22 +0000 (08:37 -0400)]
Merge pull request #3006 from pacovn/static_analysis__shadow_variables1

bgpd isisd ospf6d ospfd: variable shadowing fixes

5 years agoMerge pull request #3009 from pacovn/static_analysis__shadow_variables3
Donald Sharp [Thu, 13 Sep 2018 12:35:47 +0000 (08:35 -0400)]
Merge pull request #3009 from pacovn/static_analysis__shadow_variables3

pimd ripd ripngd: variable shadowing fixes

5 years agoMerge pull request #3013 from pacovn/static_analysis__conditional_omitted_operand1
Donald Sharp [Thu, 13 Sep 2018 12:34:31 +0000 (08:34 -0400)]
Merge pull request #3013 from pacovn/static_analysis__conditional_omitted_operand1

nhrpd: missing operand added

5 years agonhrpd: missing operand added
F. Aragon [Thu, 13 Sep 2018 10:05:20 +0000 (12:05 +0200)]
nhrpd: missing operand added

Detected using -Wgnu-conditional-omitted-operand

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge branch 'warnings'
David Lamparter [Wed, 12 Sep 2018 20:00:04 +0000 (22:00 +0200)]
Merge branch 'warnings'

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge remote-tracking branch 'frr/master' into warnings
David Lamparter [Wed, 12 Sep 2018 19:58:39 +0000 (21:58 +0200)]
Merge remote-tracking branch 'frr/master' into warnings

Conflicts:
zebra/if_ioctl_solaris.c
zebra/rtread_getmsg.c

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobgpd isisd ospf6d ospfd: variable shadowing fixes
F. Aragon [Wed, 12 Sep 2018 10:18:44 +0000 (12:18 +0200)]
bgpd isisd ospf6d ospfd: variable shadowing fixes

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agopimd ripd ripngd: variable shadowing fixes
F. Aragon [Wed, 12 Sep 2018 10:55:31 +0000 (12:55 +0200)]
pimd ripd ripngd: variable shadowing fixes

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #3005 from patrasar/indentation_warnings
David Lamparter [Wed, 12 Sep 2018 10:39:26 +0000 (12:39 +0200)]
Merge pull request #3005 from patrasar/indentation_warnings

pimd: fix indentation warnings

5 years agolib vtysh zebra: variable shadowing fixes
F. Aragon [Wed, 12 Sep 2018 10:25:27 +0000 (12:25 +0200)]
lib vtysh zebra: variable shadowing fixes

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agopimd: fix indentation warnings
Sarita Patra [Wed, 12 Sep 2018 05:00:15 +0000 (22:00 -0700)]
pimd: fix indentation warnings

Signed-off-by: Sarita Patra <saritap@vmware.com>
5 years agoMerge pull request #2944 from thbtcllt/master
Russ White [Tue, 11 Sep 2018 15:33:27 +0000 (11:33 -0400)]
Merge pull request #2944 from thbtcllt/master

fix zebra crash when a vrf interface changes with netns implementation for vrf

5 years agoMerge branch 'pr2983'
David Lamparter [Tue, 11 Sep 2018 14:56:30 +0000 (16:56 +0200)]
Merge branch 'pr2983'

5 years agolib: whitespace/spelling fix
David Lamparter [Tue, 11 Sep 2018 14:55:56 +0000 (16:55 +0200)]
lib: whitespace/spelling fix

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge pull request #2985 from patrasar/Fix_1636
Donald Sharp [Tue, 11 Sep 2018 13:16:24 +0000 (09:16 -0400)]
Merge pull request #2985 from patrasar/Fix_1636

pimd: create a new command "ip pim" configuring pim sm

5 years agopimd: create a new command "ip pim" configuring pim sm
root [Fri, 7 Sep 2018 11:46:57 +0000 (04:46 -0700)]
pimd: create a new command "ip pim" configuring pim sm

A new command "ip pim" is created to configure pim sm on an
interface, which replaces the existing commands "ip pim sm"
and "ip pim ssm" and make "ip pim sm" and "ip pim ssm" as
hidden commands. The command "ip multicast-routing" is removed
since it is already enabled on FRR by default.

Signed-off-by: Sarita Patra saritap@vmware.com
5 years agoMerge pull request #3001 from donaldsharp/bgp_origin_honor
Martin Winter [Tue, 11 Sep 2018 01:18:39 +0000 (12:18 +1100)]
Merge pull request #3001 from donaldsharp/bgp_origin_honor

bgpd: Honor origin change in bgp aggregates

5 years agoMerge pull request #2999 from donaldsharp/consistent
David Lamparter [Mon, 10 Sep 2018 17:51:05 +0000 (19:51 +0200)]
Merge pull request #2999 from donaldsharp/consistent

doc: Fixup to use consistent frrvty group name

5 years agoMerge pull request #2979 from qlyoung/improve-readme
David Lamparter [Mon, 10 Sep 2018 17:50:52 +0000 (19:50 +0200)]
Merge pull request #2979 from qlyoung/improve-readme

Improve readme

5 years agofrr: add README.md to EXTRA_DIST
Quentin Young [Thu, 6 Sep 2018 17:14:03 +0000 (17:14 +0000)]
frr: add README.md to EXTRA_DIST

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agofrr: improve README
Quentin Young [Tue, 4 Sep 2018 20:27:54 +0000 (20:27 +0000)]
frr: improve README

Friendly READMEs are all the rage!

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agofrr: remove stale files, allow non-GNU Automake
Quentin Young [Wed, 5 Sep 2018 17:47:53 +0000 (17:47 +0000)]
frr: remove stale files, allow non-GNU Automake

* Add 'foreign' option to allow Automake to ignore missing GNU standard
  files
* Remove AUTHORS
* Remove NEWS
* Remove ChangeLog

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobgpd: Honor origin change in bgp aggregates
Donald Sharp [Mon, 10 Sep 2018 14:19:03 +0000 (10:19 -0400)]
bgpd: Honor origin change in bgp aggregates

When the origin changed we must honor and update the aggregate
to the peer.  This code adds a bit of code to the bgp_aggregate_info_same
code to see if the origin has changed and to indicate that it has.

Fixes: #2993
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agodoc: Fixup to use consistent frrvty group name
Donald Sharp [Mon, 10 Sep 2018 12:46:50 +0000 (08:46 -0400)]
doc: Fixup to use consistent frrvty group name

In some places we were using `frrvt` instead of `frrvty`.  Make it consistent
with every other place and use frrvty.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2977 from opensourcerouting/doc-fix
Donald Sharp [Sun, 9 Sep 2018 18:52:38 +0000 (14:52 -0400)]
Merge pull request #2977 from opensourcerouting/doc-fix

build: fix not building docs w/o sphinx

5 years agoMerge pull request #2965 from opensourcerouting/buildfoo-20180904
Donald Sharp [Sun, 9 Sep 2018 18:11:10 +0000 (14:11 -0400)]
Merge pull request #2965 from opensourcerouting/buildfoo-20180904

more build fixes & warning-free build

5 years agobuild: move SPHINXBUILD= to configure in rpm build
David Lamparter [Sat, 8 Sep 2018 12:59:24 +0000 (14:59 +0200)]
build: move SPHINXBUILD= to configure in rpm build

Need to pass this on configure now to work properly.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: fix not building docs w/o sphinx
David Lamparter [Wed, 5 Sep 2018 09:25:24 +0000 (11:25 +0200)]
build: fix not building docs w/o sphinx

Can't build manpages without sphinx-build, oops...

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge pull request #2862 from opensourcerouting/non-recursive
Donald Sharp [Sun, 9 Sep 2018 17:51:58 +0000 (13:51 -0400)]
Merge pull request #2862 from opensourcerouting/non-recursive

final non-recursive make

5 years agoMerge pull request #2995 from wwijkander/docpatch
David Lamparter [Sun, 9 Sep 2018 11:38:12 +0000 (13:38 +0200)]
Merge pull request #2995 from wwijkander/docpatch

doc: Update RPM building instructions

5 years agoMerge pull request #2994 from opensourcerouting/sa-warnings
Donald Sharp [Sun, 9 Sep 2018 01:04:54 +0000 (21:04 -0400)]
Merge pull request #2994 from opensourcerouting/sa-warnings

fix remaining SA warnings

5 years agolib: early-include "config.h" in flex lexers
David Lamparter [Sat, 8 Sep 2018 23:00:42 +0000 (01:00 +0200)]
lib: early-include "config.h" in flex lexers

This is neccessary to get _FILE_OFFSET_BITS right.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoospf6d: remove extra struct in ospf6_lsa_handler
David Lamparter [Tue, 4 Sep 2018 10:55:19 +0000 (12:55 +0200)]
ospf6d: remove extra struct in ospf6_lsa_handler

This serves no other purpose than to generate stupid warnings for
overwritten initializers on old gcc versions.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: fix some random warnings
David Lamparter [Tue, 4 Sep 2018 10:27:46 +0000 (12:27 +0200)]
*: fix some random warnings

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: make pthread_set[_]name_np test OS agnostic
David Lamparter [Tue, 4 Sep 2018 11:15:56 +0000 (13:15 +0200)]
lib: make pthread_set[_]name_np test OS agnostic

FreeBSD supports pthread_set_name_np() too.  Also, pthread_set_name_np()
returns void.  And NetBSD has pthread_setname_np() with an extra arg...

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: check {malloc,pthread}_np.h for *BSD
David Lamparter [Tue, 4 Sep 2018 10:24:22 +0000 (12:24 +0200)]
build: check {malloc,pthread}_np.h for *BSD

FreeBSD has malloc_usable_size() in malloc_np.h
OpenBSD has pthread_set_name_np() in pthread_np.h

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoUpdate RPM building instructions
Wilhelm Wijkander [Sat, 8 Sep 2018 19:56:25 +0000 (21:56 +0200)]
Update RPM building instructions

5 years agobuild: move RFPLDADD to bgpd/rfp-example/librfp
David Lamparter [Tue, 21 Aug 2018 18:56:16 +0000 (20:56 +0200)]
build: move RFPLDADD to bgpd/rfp-example/librfp

This makes it slightly easier to replace the stub RFP code with an
external implementation.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: use _POSIX_C_SOURCE
David Lamparter [Tue, 28 Aug 2018 09:40:57 +0000 (11:40 +0200)]
build: use _POSIX_C_SOURCE

Need this to get CMSG_SPACE/CMSG_LEN on Solaris.

Also, AC_GNU_SOURCE is deprecated, AC_USE_SYSTEM_EXTENSIONS does that.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agovtysh: make RPKI node non-conditional
David Lamparter [Sat, 18 Aug 2018 16:03:16 +0000 (18:03 +0200)]
vtysh: make RPKI node non-conditional

Whether or not RPKI is enabled during build shouldn't really influence
vtysh; the user can always manually install bgpd_rpki.so later and it
should work.  This also means that the behaviour of "RPKI module not
loaded" is consistent regardless of whether it was a compile-time or
runtime decision.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: fix some solaris warnings
David Lamparter [Tue, 28 Aug 2018 08:59:02 +0000 (10:59 +0200)]
*: fix some solaris warnings

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: cleanup .gitignore files
David Lamparter [Sat, 18 Aug 2018 03:29:10 +0000 (05:29 +0200)]
*: cleanup .gitignore files

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: fix config.h/zebra.h include order
David Lamparter [Tue, 28 Aug 2018 08:57:13 +0000 (10:57 +0200)]
*: fix config.h/zebra.h include order

config.h (or, transitively, zebra.h) must be the first include file
listed for autoconf things like _GNU_SOURCE and _POSIX_C_SOURCE to work
correctly.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: fix & clean up *SAN flags
David Lamparter [Sun, 2 Sep 2018 18:36:20 +0000 (20:36 +0200)]
build: fix & clean up *SAN flags

ASAN/MSAN/TSAN flags need to be in CFLAGS and LDFLAGS; the latter links
the correct compiler-dependent library.  Also, the configure switch was
broken (--disable-... would enable the sanitizer.)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: make pkgconfig configure output useful
David Lamparter [Mon, 27 Aug 2018 05:02:59 +0000 (07:02 +0200)]
build: make pkgconfig configure output useful

The variable name is not exactly the most helpful thing there.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: clean up protobuf build integration
David Lamparter [Sun, 2 Sep 2018 13:15:17 +0000 (15:15 +0200)]
build: clean up protobuf build integration

We were linking all libs and binaries against libprotobuf-c if the
option was enabled... that makes no sense at all.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: use -export-dynamic
David Lamparter [Sun, 2 Sep 2018 12:52:43 +0000 (14:52 +0200)]
build: use -export-dynamic

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agotests: properly locate files in builddir
David Lamparter [Sat, 18 Aug 2018 03:00:54 +0000 (05:00 +0200)]
tests: properly locate files in builddir

test_cli.refout is written by configure into the build directory, thus
we need a little special glue to find it correctly.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: move vtysh & manpage listings to subdir.am
David Lamparter [Sat, 18 Aug 2018 04:05:07 +0000 (06:05 +0200)]
build: move vtysh & manpage listings to subdir.am

Since we're now building through one large Makefile, we can easily put
things with their daemons and crossreference nicely.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: remove common.am
David Lamparter [Sat, 18 Aug 2018 03:34:59 +0000 (05:34 +0200)]
build: remove common.am

Fold things into where they make sense.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: include helper Makefiles in dist
David Lamparter [Sat, 18 Aug 2018 18:08:46 +0000 (20:08 +0200)]
build: include helper Makefiles in dist

Need these to have "make" work in subdirectories.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: non-recursive tests
David Lamparter [Wed, 15 Aug 2018 22:26:39 +0000 (00:26 +0200)]
build: non-recursive tests

May SUBDIRS rest in pieces... er, peace.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: non-recursive vtysh
David Lamparter [Wed, 15 Aug 2018 21:55:22 +0000 (23:55 +0200)]
build: non-recursive vtysh

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: non-recursive bgpd & rfp
David Lamparter [Wed, 15 Aug 2018 21:35:51 +0000 (23:35 +0200)]
build: non-recursive bgpd & rfp

Note: no more --with-rfp-path on configure - badly messing with the
build system like this really isn't how to do a conditional external
dependency.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobfdd: fix garbage "port" string
David Lamparter [Sat, 8 Sep 2018 18:18:30 +0000 (20:18 +0200)]
bfdd: fix garbage "port" string

bfd_recv_ipv4() is getting an uninitialized buffer passed in as port,
and then checks it without clearing it first.  Thus we can end up
leaving garbage data in it.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: fix clang-6 SA warnings
David Lamparter [Sat, 8 Sep 2018 18:16:59 +0000 (20:16 +0200)]
*: fix clang-6 SA warnings

I don't see these in CI, but my local clang-6 does emit warnings for
these.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: fix SA warning in skiplist code
David Lamparter [Sat, 8 Sep 2018 17:47:05 +0000 (19:47 +0200)]
lib: fix SA warning in skiplist code

Clang was thinking the random level could be negative.  (And, no, I
couldn't figure that out by reading its output... trial and error this
was.)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib, ldpd: fix SA warnings from TAILQ oddness
David Lamparter [Sat, 8 Sep 2018 17:25:00 +0000 (19:25 +0200)]
lib, ldpd: fix SA warnings from TAILQ oddness

Add a TAILQ_POP_FIRST so Clang understands it's the same item that is
getting removed from the list.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge pull request #2875 from opensourcerouting/fabricd
Donald Sharp [Sat, 8 Sep 2018 17:48:48 +0000 (13:48 -0400)]
Merge pull request #2875 from opensourcerouting/fabricd

OpenFabric support

5 years agoMerge pull request #2991 from donaldsharp/mac_compiling
David Lamparter [Sat, 8 Sep 2018 17:45:18 +0000 (19:45 +0200)]
Merge pull request #2991 from donaldsharp/mac_compiling

Mac compiling cleanups

5 years agoisisd: silence SA warnings
David Lamparter [Sat, 8 Sep 2018 16:25:45 +0000 (18:25 +0200)]
isisd: silence SA warnings

As suggested by Renato Westphal.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agovtysh: Actually make the new_completion function match
Donald Sharp [Fri, 7 Sep 2018 18:30:24 +0000 (14:30 -0400)]
vtysh: Actually make the new_completion function match

The new_completion function was not declared the same
way the rl_attempted_completion_function pointer was.
The only difference was a 'const char *' -vs- 'char *'
So convert it over.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agovtysh: Add code to isolate append_history
Donald Sharp [Fri, 7 Sep 2018 17:50:57 +0000 (13:50 -0400)]
vtysh: Add code to isolate append_history

The append_history function in lib readline appears to
not be universally available across all of the esoteric
platforms we may want to compile on.  As such
provide a way to gracefully do nothing.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Detect if pthread_condattr_setclock is available
Donald Sharp [Fri, 7 Sep 2018 17:11:02 +0000 (13:11 -0400)]
lib: Detect if pthread_condattr_setclock is available

Auto-detect if pthread_condattr_setclock is available and if
it is not allow the code to compile around the issue.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Cleanup include of link.h
Donald Sharp [Fri, 7 Sep 2018 16:55:03 +0000 (12:55 -0400)]
lib: Cleanup include of link.h

We need link.h for the HAVE_DLINFO_LINKMAP, so include
it if we need it for that code path.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2989 from donaldsharp/static_debug
David Lamparter [Sat, 8 Sep 2018 15:38:48 +0000 (17:38 +0200)]
Merge pull request #2989 from donaldsharp/static_debug

Static debug

5 years agoMerge pull request #2988 from donaldsharp/more_debugs
David Lamparter [Sat, 8 Sep 2018 15:36:18 +0000 (17:36 +0200)]
Merge pull request #2988 from donaldsharp/more_debugs

zebra: Modify nexthop checks to report inactive a bit more

5 years agoMerge pull request #2981 from donaldsharp/v6_vxlan_bug
David Lamparter [Sat, 8 Sep 2018 15:35:20 +0000 (17:35 +0200)]
Merge pull request #2981 from donaldsharp/v6_vxlan_bug

zebra: Fix RB-Tree storage comparison function for v6

5 years agoMerge pull request #2982 from donaldsharp/smux_h
David Lamparter [Sat, 8 Sep 2018 15:13:45 +0000 (17:13 +0200)]
Merge pull request #2982 from donaldsharp/smux_h

lib: Add missing smux.h to `make distrib` results

5 years agoMerge pull request #2949 from donaldsharp/removal
Martin Winter [Fri, 7 Sep 2018 17:04:51 +0000 (19:04 +0200)]
Merge pull request #2949 from donaldsharp/removal

ospf6d: Remove deprecated code after 1 year

5 years agoMerge pull request #2987 from pacovn/Coverity_1473088_ovf_array_index_write
Quentin Young [Fri, 7 Sep 2018 15:40:31 +0000 (11:40 -0400)]
Merge pull request #2987 from pacovn/Coverity_1473088_ovf_array_index_write

lib: array index check (Coverity 1473088)

5 years agosharpd: Fix missing 'show debug' command
Donald Sharp [Fri, 7 Sep 2018 11:05:35 +0000 (07:05 -0400)]
sharpd: Fix missing 'show debug' command

The sharp daemon was not properly handling 'show debug'
commands.  Fix.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agostaticd: Fix 'show debug static" command
Donald Sharp [Fri, 7 Sep 2018 11:01:19 +0000 (07:01 -0400)]
staticd: Fix 'show debug static" command

'show debugging' is returning a Command incomplete
error message as that it is being sent to staticd
and staticd has no knowledge of it, fix this.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: array index check (Coverity 1473088)
F. Aragon [Fri, 7 Sep 2018 09:20:45 +0000 (11:20 +0200)]
lib: array index check (Coverity 1473088)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agozebra: Modify nexthop checks to report inactive a bit more
Donald Sharp [Thu, 6 Sep 2018 22:26:04 +0000 (18:26 -0400)]
zebra: Modify nexthop checks to report inactive a bit more

Debugging inactive nexthops in zebra can be quite difficult
and non-obvious what has gone wrong.  Add detailed rib
debugs for the cases where we decide that a nexthop is
inactive so that we can more easily debug a reason
for the failure.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agozebra: fix includes
Quentin Young [Fri, 24 Aug 2018 17:14:09 +0000 (17:14 +0000)]
zebra: fix includes

Add and remove error related includes as necessary.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobgpd: remove duplicate log_ref_add()
Quentin Young [Fri, 24 Aug 2018 18:21:17 +0000 (18:21 +0000)]
bgpd: remove duplicate log_ref_add()

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolib: PRIu32 in log.h
Quentin Young [Fri, 24 Aug 2018 17:08:28 +0000 (17:08 +0000)]
lib: PRIu32 in log.h

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years ago*: style for flog_warn conversions
Quentin Young [Fri, 24 Aug 2018 16:26:43 +0000 (16:26 +0000)]
*: style for flog_warn conversions

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agozebra: flog_warn conversion
Quentin Young [Thu, 16 Aug 2018 20:10:32 +0000 (20:10 +0000)]
zebra: flog_warn conversion

Convert Zebra to user error subsystem.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoospfd: Convert ospf_sr.c to use error-card subsystem.
Donald Sharp [Tue, 21 Aug 2018 13:46:53 +0000 (09:46 -0400)]
ospfd: Convert ospf_sr.c to use error-card subsystem.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoospfd: Modify ospf_spf.c to use error-card subsystem
Donald Sharp [Tue, 21 Aug 2018 13:36:28 +0000 (09:36 -0400)]
ospfd: Modify ospf_spf.c to use error-card subsystem

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoospfd: Convert ospf_ri to use error-code subsystem
Donald Sharp [Tue, 21 Aug 2018 13:35:08 +0000 (09:35 -0400)]
ospfd: Convert ospf_ri to use error-code subsystem

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoospf_nsm.c: Convert warn->err and use error-code
Donald Sharp [Tue, 21 Aug 2018 13:29:30 +0000 (09:29 -0400)]
ospf_nsm.c: Convert warn->err and use error-code

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>