]>
git.puffer.fish Git - matthieu/frr.git/log
Donald Sharp [Thu, 20 Sep 2018 17:16:30 +0000 (13:16 -0400)]
Merge pull request #3058 from pacovn/Coverity_1399484_Dereference_null_return_value
tools: null check (Coverity
1399484 )
Donald Sharp [Thu, 20 Sep 2018 17:13:55 +0000 (13:13 -0400)]
Merge pull request #3062 from pacovn/static_analysis__redundant_parentheses
lib: redundant parentheses (SA)
Donald Sharp [Thu, 20 Sep 2018 17:12:06 +0000 (13:12 -0400)]
Merge pull request #3060 from pacovn/Coverity_1399196_Unchecked_return_value
tools: return check (Coverity
1399196 )
Donald Sharp [Thu, 20 Sep 2018 17:11:16 +0000 (13:11 -0400)]
Merge pull request #3061 from pacovn/static_analysis__Wgnu-redeclared-enum
zebra: redeclaration fix (SA)
F. Aragon [Thu, 20 Sep 2018 15:36:21 +0000 (17:36 +0200)]
lib: redundant parentheses (SA)
Redundant parentheses surrounding declarator removed.
Can be detected via static analysis with e.g.
./configure CFLAGS=-Wredundant-parens CC=clang
Signed-off-by: F. Aragon <paco@voltanet.io>
F. Aragon [Thu, 20 Sep 2018 15:25:40 +0000 (17:25 +0200)]
zebra: redeclaration fix (SA)
Unnecesary redeclaration of already-defined enum 'dp_results' removed.
Can be detected via static analysis with e.g.
./configure CFLAGS=-Wgnu-redeclared-enum CC=clang
Signed-off-by: F. Aragon <paco@voltanet.io>
F. Aragon [Thu, 20 Sep 2018 14:42:31 +0000 (16:42 +0200)]
tools: return check (Coverity
1399196 )
Signed-off-by: F. Aragon <paco@voltanet.io>
F. Aragon [Thu, 20 Sep 2018 14:23:52 +0000 (16:23 +0200)]
tools: null check (Coverity
1399484 )
Fixed using XCALLOC(MTYPE_TMP, ...) instead of calloc(...) because of the
error handling (XCALLOC checks + log + abort through memory_oom())
Signed-off-by: F. Aragon <paco@voltanet.io>
David Lamparter [Tue, 18 Sep 2018 14:31:23 +0000 (16:31 +0200)]
Merge pull request #3017 from pacovn/devbuild_Wshadow_flag
build: add -Wshadow to the dev build
David Lamparter [Tue, 18 Sep 2018 14:24:10 +0000 (16:24 +0200)]
Merge pull request #3042 from donaldsharp/pim_startup
Pim startup for non-integrated config
David Lamparter [Tue, 18 Sep 2018 10:49:09 +0000 (12:49 +0200)]
Merge pull request #3041 from qlyoung/doc-cli-dep-period-length
doc: document CLI deprecation period length
David Lamparter [Tue, 18 Sep 2018 10:48:45 +0000 (12:48 +0200)]
Merge pull request #3038 from donaldsharp/pim_table_id
Pim table
David Lamparter [Tue, 18 Sep 2018 10:47:54 +0000 (12:47 +0200)]
Merge pull request #3015 from donaldsharp/no_fast_failover_and_vrf
bgpd: Using no bgp fast-external-failover prevents vrf intf moves
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)
Donald Sharp [Mon, 17 Sep 2018 18:09:06 +0000 (14:09 -0400)]
pimd: use bool instead of int to pass true/false
In pim_if_new use bool instead of an int to pass
true/false values for what we should create the
pim interface type for.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Mon, 17 Sep 2018 17:58:59 +0000 (13:58 -0400)]
pimd: Actually create vif's in non-integrated config
The startup of a non-integrated config was not properly
allowing for startup to create the vif when we have
not learned about the interface we are trying to configure
at this point in time. Actually notice when we are
trying to create a pimreg device or not to properly
notice when to attempt to create the vif or not.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
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>
Quentin Young [Mon, 17 Sep 2018 16:48:11 +0000 (16:48 +0000)]
doc: document CLI deprecation period length
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
F. Aragon [Thu, 13 Sep 2018 14:42:30 +0000 (16:42 +0200)]
build: add -Wshadow to the dev build
Signed-off-by: F. Aragon <paco@voltanet.io>
Donald Sharp [Mon, 17 Sep 2018 13:18:40 +0000 (09:18 -0400)]
zebra: Send correct default vrf tableid for MROUTE stats
So the linux kernel uses the RT_TABLE_MAIN for the table
id used for ip routing. The multicast routing tables use
RT_TABLE_DEFAULT. We changed the internal code of zebra_vrf
a few months back to use RT_TABLE_MAIN as the tableid to
use. This caused the pim sg stats to stop working because
of the kernel bug where it uses a different table
for ip routing and ip multicast.
Put a bit of a special case in to do the right thing.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Mon, 17 Sep 2018 13:13:20 +0000 (09:13 -0400)]
zebra: Add some additional vrf debug for retrieving mroute info
When debugging the mroute code path in zebra, add a bit of additional
data to allow us to know what is going on a bit more.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
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 14:29:16 +0000 (10:29 -0400)]
doc: Update docs to mention 'no bgp fast-external-failover'
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Thu, 13 Sep 2018 12:59:46 +0000 (08:59 -0400)]
bgpd: Using no bgp fast-external-failover prevents vrf intf moves
When using `no bgp fast-external-failover` and a interface moves
from one vrf into another we would not fully process the change.
Fix this code path.
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>