summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSri Mohana Singamsetty <srimohans@gmail.com>2020-03-11 12:21:58 -0700
committerGitHub <noreply@github.com>2020-03-11 12:21:58 -0700
commit40963e96ded88bf71a238ea6f5c8ab674f30a69d (patch)
tree738c22848397678bfdc91c2c5a723cf83713a2a7
parent2ff6f38eaa6ec6bbc3c94950370ceee04023a318 (diff)
parent73b1082ed93cc35e56524b22c603aa13ba551dbe (diff)
Merge pull request #5952 from ton31337/fix/no_need_for_if_in_filter_override
bgpd: Do not check for a maximum for peer->filter_override
-rw-r--r--bgpd/bgpd.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/bgpd/bgpd.h b/bgpd/bgpd.h
index a6d5cc048a..1ada056a92 100644
--- a/bgpd/bgpd.h
+++ b/bgpd/bgpd.h
@@ -1281,9 +1281,7 @@ struct peer {
* - This does *not* contain the filter values, rather it contains
* whether the filter in filter (struct bgp_filter) is peer-specific.
*/
- uint8_t filter_override[AFI_MAX][SAFI_MAX][(FILTER_MAX > RMAP_MAX)
- ? FILTER_MAX
- : RMAP_MAX];
+ uint8_t filter_override[AFI_MAX][SAFI_MAX][FILTER_MAX];
#define PEER_FT_DISTRIBUTE_LIST (1 << 0) /* distribute-list */
#define PEER_FT_FILTER_LIST (1 << 1) /* filter-list */
#define PEER_FT_PREFIX_LIST (1 << 2) /* prefix-list */