From 68197386ddba616c9973d3190c42f6121a25d9b7 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Mon, 4 Jun 2018 18:56:05 +0200 Subject: BGP: Long-lived graceful restart The patch implements long-lived graceful restart for BGP, namely draft-uttaro-idr-bgp-persistence-03. --- proto/pipe/pipe.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'proto/pipe') diff --git a/proto/pipe/pipe.c b/proto/pipe/pipe.c index 5d0e3c76..164191dd 100644 --- a/proto/pipe/pipe.c +++ b/proto/pipe/pipe.c @@ -89,6 +89,12 @@ pipe_rt_notify(struct proto *P, rtable *src_table, net *n, rte *new, rte *old, e memcpy(&(e->u), &(new->u), sizeof(e->u)); e->pref = new->pref; e->pflags = new->pflags; + +#ifdef CONFIG_BGP + /* Hack to cleanup cached value */ + if (e->attrs->src->proto->proto == &proto_bgp) + e->u.bgp.stale = -1; +#endif } src = a.src; -- cgit v1.2.3