diff options
| author | Sri Mohana Singamsetty <srimohans@gmail.com> | 2020-03-11 12:21:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-11 12:21:58 -0700 |
| commit | 40963e96ded88bf71a238ea6f5c8ab674f30a69d (patch) | |
| tree | 738c22848397678bfdc91c2c5a723cf83713a2a7 | |
| parent | 2ff6f38eaa6ec6bbc3c94950370ceee04023a318 (diff) | |
| parent | 73b1082ed93cc35e56524b22c603aa13ba551dbe (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.h | 4 |
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 */ |
