When next hop self / keep / address changed, BGP only reloaded
the exports but it didn't apply the changes. To fix this problem
before actually implementing a proper change detection algorithm,
we restart the protocol if this setting changes.
Fixes #280.
*import_changed = 1;
}
+ /* Outgoing next hop setting is too complex to update, forcing restart. */
if (!ipa_equal(new->next_hop_addr, old->next_hop_addr) ||
(new->next_hop_self != old->next_hop_self) ||
- (new->next_hop_keep != old->next_hop_keep) ||
- (new->llnh_format != old->llnh_format) ||
+ (new->next_hop_keep != old->next_hop_keep))
+ return 0;
+
+ if ((new->llnh_format != old->llnh_format) ||
(new->aigp != old->aigp) ||
(new->aigp_originate != old->aigp_originate))
*export_changed = 1;