]>
git.puffer.fish Git - mirror/frr.git/log
David Lamparter [Tue, 18 Sep 2018 10:46:42 +0000 (12:46 +0200)]
Merge branch 'pr/2986'
Conflicts:
bgpd/bgp_network.c (BGP_ERR_* -> EC_BGP_*)
Signed-off-by: David Lamparter <equinox@diac24.net>
Quentin Young [Mon, 17 Sep 2018 19:25:49 +0000 (15:25 -0400)]
Merge pull request #3040 from pacovn/static_analysis__drop_const_1
bgpd isisd ldpd lib: const drop fixes (SA)
F. Aragon [Mon, 17 Sep 2018 16:22:59 +0000 (18:22 +0200)]
bgpd isisd ldpd lib: const drop fixes (SA)
Can be detected with e.g. ./configure CFLAGS=-Wcast-qual CC=clang
Signed-off-by: F. Aragon <paco@voltanet.io>
Lou Berger [Mon, 17 Sep 2018 10:03:49 +0000 (06:03 -0400)]
Merge pull request #3031 from pacovn/static_analysis__Wcomma
bgpd isisd zebra: misuse of comma operator
David Lamparter [Sat, 15 Sep 2018 15:38:08 +0000 (17:38 +0200)]
Merge pull request #3036 from donaldsharp/kernel_is_a_mernel
Kernel is a mernel
David Lamparter [Sat, 15 Sep 2018 15:37:00 +0000 (17:37 +0200)]
Merge pull request #3035 from donaldsharp/the_table_in_all_of_us
staticd: Allow table_id to be a distinguisher for installation
Donald Sharp [Fri, 14 Sep 2018 21:54:11 +0000 (17:54 -0400)]
zebra: Newer kernels send data about mroute changes
Newer linux kernels apparently send data down the netlink
bus for the creation of mroutes. Add a bit of code
to notice this and to handle it appropriately( ie do
nothing at this point in time ) as that the correct
place to do this is in the pim socket in pimd.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Fri, 14 Sep 2018 21:48:51 +0000 (17:48 -0400)]
zebra: Print out netlink message type instead of number
When we are displaying data about a netlink message
in debugs or errors, print out the message type
as a string instead of a number.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Fri, 14 Sep 2018 20:30:17 +0000 (16:30 -0400)]
staticd: Allow table_id to be a distinguisher for installation
The table_id should be a discriminator in the installation of
static routes into zebra from staticd. Add this to allow the end
user to do something like this:
ip route 4.5.6.7/32 192.168.209.44
ip route 4.5.6.7/32 192.168.209.44 table 3000
ip route 4.5.6.7/32 192.168.209.45 table 3000
robot# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route
K>* 0.0.0.0/0 [0/101] via 192.168.201.1, enp0s3, 00:01:40
S>* 4.3.2.1/32 [1/0] via 192.168.210.4, enp0s10, 00:01:35
S>* 4.3.2.2/32 [1/0] via 192.168.209.4, enp0s9, 00:01:35
S>* 4.5.6.0/26 [1/0] via 192.168.210.4, enp0s10, 00:01:35
S>* 4.5.6.7/32 [1/0] via 192.168.209.44, enp0s9, 00:01:35
C>* 192.168.201.0/24 is directly connected, enp0s3, 00:01:40
C>* 192.168.208.0/24 is directly connected, enp0s8, 00:01:40
C>* 192.168.209.0/24 is directly connected, enp0s9, 00:01:40
C>* 192.168.210.0/24 is directly connected, enp0s10, 00:01:40
robot# show ip route table 3000
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route
S>* 4.5.6.7/32 [1/0] via 192.168.209.44, enp0s9, 00:00:55
* via 192.168.209.45, enp0s9, 00:00:55
robot#
Fixes: #2954
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
David Lamparter [Fri, 14 Sep 2018 15:57:19 +0000 (17:57 +0200)]
Merge pull request #3018 from donaldsharp/twheel_names
Twheel names
David Lamparter [Fri, 14 Sep 2018 15:55:50 +0000 (17:55 +0200)]
Merge pull request #3030 from pacovn/fp_type_fixes1
bgpd: type fix
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
F. Aragon [Fri, 14 Sep 2018 13:47:41 +0000 (15:47 +0200)]
bgpd isisd zebra: misuse of comma operator
Detected using ./configure CFLAGS=-Wcomma CC=clang
Signed-off-by: F. Aragon <paco@voltanet.io>
F. Aragon [Fri, 14 Sep 2018 12:53:55 +0000 (14:53 +0200)]
bgpd: type fix
For tracking the last state of the penalty (struct bgp_damp_info) a 'double'
type was used instead of using the 'unsigned int' being used in the structure.
Detected using ./configure CFLAGS=-Wfloat-equal CC=clang
Signed-off-by: F. Aragon <paco@voltanet.io>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
Donald Sharp [Thu, 30 Nov 2017 00:36:26 +0000 (19:36 -0500)]
lib, pimd: Convert timer_wheel to use thread_execute_name
Allow at timer wheel creation time the ability to specify a
name for what we want the 'show thread cpu' to show up as.
Modify pim to note this.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Thu, 30 Nov 2017 00:35:30 +0000 (19:35 -0500)]
lib: Add thread_execute_name
Allow the user to specify a run name for display in
'show thread cpu' that is different than the function
name we are calling.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
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
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
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
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
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>
David Lamparter [Wed, 12 Sep 2018 20:00:04 +0000 (22:00 +0200)]
Merge branch 'warnings'
Signed-off-by: David Lamparter <equinox@diac24.net>
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>
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>
Donald Sharp [Thu, 6 Sep 2018 14:51:08 +0000 (10:51 -0400)]
bgpd: Prevent possible crash when parsing v6 attributes
The peer->nexthop.ifp pointer must be set when parsing the
attributes in bgp_mp_reach_parse, notice this
and fail gracefully.
Rework bgp_nexthop_set to remove the HAVE_CUMULUS and to
fail the nexthop_set when we have a zebra connection and
no ifp pointer, as that not havinga zebra connection and
no ifp pointer is legal.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
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>
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
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>
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>
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
David Lamparter [Tue, 11 Sep 2018 14:56:30 +0000 (16:56 +0200)]
Merge branch 'pr2983'
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>
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
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
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
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
David Lamparter [Mon, 10 Sep 2018 17:50:52 +0000 (19:50 +0200)]
Merge pull request #2979 from qlyoung/improve-readme
Improve readme
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>
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>
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>
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>
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>
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
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
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>
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>
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
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
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
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>
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>
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>
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>
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>
Wilhelm Wijkander [Sat, 8 Sep 2018 19:56:25 +0000 (21:56 +0200)]
Update RPM building instructions
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>
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>
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>
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>
David Lamparter [Sat, 18 Aug 2018 03:29:10 +0000 (05:29 +0200)]
*: cleanup .gitignore files
Signed-off-by: David Lamparter <equinox@diac24.net>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Donald Sharp [Sat, 8 Sep 2018 17:48:48 +0000 (13:48 -0400)]
Merge pull request #2875 from opensourcerouting/fabricd
OpenFabric support
David Lamparter [Sat, 8 Sep 2018 17:45:18 +0000 (19:45 +0200)]
Merge pull request #2991 from donaldsharp/mac_compiling
Mac compiling cleanups
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>
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>
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>
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>
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>
David Lamparter [Sat, 8 Sep 2018 15:38:48 +0000 (17:38 +0200)]
Merge pull request #2989 from donaldsharp/static_debug
Static debug
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
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