]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agoMerge pull request #3017 from pacovn/devbuild_Wshadow_flag
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

5 years agoMerge pull request #3042 from donaldsharp/pim_startup
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

5 years agoMerge pull request #3041 from qlyoung/doc-cli-dep-period-length
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

5 years agoMerge pull request #3038 from donaldsharp/pim_table_id
David Lamparter [Tue, 18 Sep 2018 10:48:45 +0000 (12:48 +0200)]
Merge pull request #3038 from donaldsharp/pim_table_id

Pim table

5 years agoMerge pull request #3015 from donaldsharp/no_fast_failover_and_vrf
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

5 years agoMerge branch 'pr/2986'
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>
5 years agoMerge pull request #3040 from pacovn/static_analysis__drop_const_1
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)

5 years agopimd: use bool instead of int to pass true/false
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>
5 years agopimd: Actually create vif's in non-integrated config
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>
5 years agobgpd 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>
5 years agodoc: document CLI deprecation period length
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>
5 years agobuild: add -Wshadow to the dev build
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>
5 years agozebra: Send correct default vrf tableid for MROUTE stats
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>
5 years agozebra: Add some additional vrf debug for retrieving mroute info
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>
5 years agoMerge pull request #3031 from pacovn/static_analysis__Wcomma
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

5 years agoMerge pull request #3036 from donaldsharp/kernel_is_a_mernel
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

5 years agoMerge pull request #3035 from donaldsharp/the_table_in_all_of_us
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

5 years agozebra: Newer kernels send data about mroute changes
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>
5 years agozebra: Print out netlink message type instead of number
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>
5 years agostaticd: Allow table_id to be a distinguisher for installation
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>
5 years agoMerge pull request #3018 from donaldsharp/twheel_names
David Lamparter [Fri, 14 Sep 2018 15:57:19 +0000 (17:57 +0200)]
Merge pull request #3018 from donaldsharp/twheel_names

Twheel names

5 years agoMerge pull request #3030 from pacovn/fp_type_fixes1
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

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 agobgpd isisd zebra: misuse of comma operator
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>
5 years agobgpd: type fix
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>
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 agolib, pimd: Convert timer_wheel to use thread_execute_name
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>
5 years agolib: Add thread_execute_name
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>
5 years agodoc: Update docs to mention 'no bgp fast-external-failover'
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>
5 years agobgpd: Using no bgp fast-external-failover prevents vrf intf moves
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>
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 agobgpd: Prevent possible crash when parsing v6 attributes
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>
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>