summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2015-12-09 08:24:45 -0500
committerPaul Jakma <paul.jakma@hpe.com>2016-02-26 14:11:47 +0000
commit91ce87aacfd8718b5a52fb0f4453e9f72d8bdb53 (patch)
tree8abce3edf10e5874aa342090810adcfbf2380053 /bgpd
parentd18396369ff85517cd4b0b7abe96f6f706710dc7 (diff)
downloadquagga-91ce87aacfd8718b5a52fb0f4453e9f72d8bdb53.tar.bz2
quagga-91ce87aacfd8718b5a52fb0f4453e9f72d8bdb53.tar.xz
zebra, bgpd: Fixup MULTIPATH_NUM usage to not consider 0
The code has spots where MULTIPATH_NUM set to 0 is equal to 64. Now that MULTIPATH_NUM is set from the makefile to never be 0, remove the code that depends on this. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 987ff298..18a22264 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -737,7 +737,7 @@ DEFUN (bgp_maxpaths,
return CMD_WARNING;
}
- if ((MULTIPATH_NUM != 0) && (maxpaths > MULTIPATH_NUM))
+ if (maxpaths > MULTIPATH_NUM)
vty_out (vty,
"%% Warning: maximum-paths set to %d is greater than %d that zebra is compiled to support%s",
maxpaths, MULTIPATH_NUM, VTY_NEWLINE);
@@ -770,7 +770,7 @@ DEFUN (bgp_maxpaths_ibgp,
return CMD_WARNING;
}
- if ((MULTIPATH_NUM != 0) && (maxpaths > MULTIPATH_NUM))
+ if (maxpaths > MULTIPATH_NUM)
vty_out (vty,
"%% Warning: maximum-paths set to %d is greater than %d that zebra is compiled to support%s",
maxpaths, MULTIPATH_NUM, VTY_NEWLINE);