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
This commit is contained in:
Sri Mohana Singamsetty 2020-03-11 12:21:58 -07:00 committed by GitHub
commit 40963e96de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 */