diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2019-01-11 22:20:13 +0100 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2019-01-14 14:41:33 +0100 |
commit | 49db7a7b055d69a8d3892a9171912b8b0f00aa45 (patch) | |
tree | cf173e30c23a4a5b682b3c15242e31615a540ec8 /zebra/zserv.h | |
parent | Merge pull request #3567 from donaldsharp/cleanup_route_table_creation (diff) | |
download | frr-49db7a7b055d69a8d3892a9171912b8b0f00aa45.tar.xz frr-49db7a7b055d69a8d3892a9171912b8b0f00aa45.zip |
lib, zebra: add AFI parameter to the ZEBRA_REDISTRIBUTE_DEFAULT_* messages
Some daemons like ospfd and isisd have the ability to advertise a
default route to their peers only if one exists in the RIB. This
is what the "default-information originate" commands do when used
without the "always" parameter.
For that to work, these daemons use the ZEBRA_REDISTRIBUTE_DEFAULT_ADD
message to request default route information to zebra. The problem
is that this message didn't have an AFI parameter, so a default route
from any address-family would satisfy the requests from both daemons
(e.g. ::/0 would trigger ospfd to advertise a default route to its
peers, and 0.0.0.0/0 would trigger isisd to advertise a default route
to its IPv6 peers).
Fix this by adding an AFI parameter to the
ZEBRA_REDISTRIBUTE_DEFAULT_{ADD,DELETE} messages and making the
corresponding code changes.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'zebra/zserv.h')
-rw-r--r-- | zebra/zserv.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zserv.h b/zebra/zserv.h index f0b8934ae..041485cdc 100644 --- a/zebra/zserv.h +++ b/zebra/zserv.h @@ -87,7 +87,7 @@ struct zserv { vrf_bitmap_t redist[AFI_MAX][ZEBRA_ROUTE_MAX]; /* Redistribute default route flag. */ - vrf_bitmap_t redist_default; + vrf_bitmap_t redist_default[AFI_MAX]; /* Interface information. */ vrf_bitmap_t ifinfo; |