diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-08-26 09:25:17 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-26 09:25:17 -0400 |
| commit | dec2a1469f83dca34f7b7a00d696b20afe62105a (patch) | |
| tree | 5bcda9d9eefba86bfb4a3a0e7ccab37154ac7728 /zebra/zebra_dplane.c | |
| parent | 9c24774d7adbea039b369075225b5c6c957d0d66 (diff) | |
| parent | fd267f0808faa24176994ed6d27c095971abdc19 (diff) | |
Merge pull request #4812 from pogojotz/fix-destination-multi-use
zebra: Do not use connection dest for bcast
Diffstat (limited to 'zebra/zebra_dplane.c')
| -rw-r--r-- | zebra/zebra_dplane.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_dplane.c b/zebra/zebra_dplane.c index 5414502fa3..512a9b4021 100644 --- a/zebra/zebra_dplane.c +++ b/zebra/zebra_dplane.c @@ -134,7 +134,7 @@ struct dplane_intf_info { #define DPLANE_INTF_CONNECTED (1 << 0) /* Connected peer, p2p */ #define DPLANE_INTF_SECONDARY (1 << 1) #define DPLANE_INTF_BROADCAST (1 << 2) -#define DPLANE_INTF_HAS_DEST (1 << 3) +#define DPLANE_INTF_HAS_DEST DPLANE_INTF_CONNECTED #define DPLANE_INTF_HAS_LABEL (1 << 4) /* Interface address/prefix */ @@ -2022,9 +2022,6 @@ static enum zebra_dplane_result intf_addr_update_internal( ctx->u.intf.dest_prefix = *(ifc->destination); ctx->u.intf.flags |= (DPLANE_INTF_CONNECTED | DPLANE_INTF_HAS_DEST); - } else if (ifc->destination) { - ctx->u.intf.dest_prefix = *(ifc->destination); - ctx->u.intf.flags |= DPLANE_INTF_HAS_DEST; } if (CHECK_FLAG(ifc->flags, ZEBRA_IFA_SECONDARY)) |
