From 8d9eef17713a9b38cd42bd59c4ce76c3ef6c2fc2 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 8 Jun 2015 02:20:43 +0200 Subject: BGP multipath support Kernel option 'merge paths' allows to merge routes exported to kernel protocol (currently BGP and static routes) to multipath routes. --- proto/static/static.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'proto/static/static.c') diff --git a/proto/static/static.c b/proto/static/static.c index 4b72fa9d..e7e7ab15 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -352,6 +352,12 @@ static_if_notify(struct proto *p, unsigned flags, struct iface *i) } } +int +static_rte_mergable(rte *pri, rte *sec) +{ + return 1; +} + void static_init_config(struct static_config *c) { @@ -366,6 +372,7 @@ static_init(struct proto_config *c) p->neigh_notify = static_neigh_notify; p->if_notify = static_if_notify; + p->rte_mergable = static_rte_mergable; return p; } -- cgit v1.2.3