Signed-off-by: Kenth Eriksson <[email protected]> --- nest/rt-show.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nest/rt-show.c b/nest/rt-show.c index c7bcdf2f..3304cd5e 100644 --- a/nest/rt-show.c +++ b/nest/rt-show.c @@ -34,7 +34,7 @@ rt_show_rte(struct cli *c, byte *ia, rte *e, struct rt_show_data *d) byte from[IPA_MAX_TEXT_LENGTH+8]; byte tm[TM_DATETIME_BUFFER_SIZE], info[256]; rta *a = e->attrs; - int primary = (e->net->routes == e); + int primary = e->u.krt.best; int sync_error = (e->net->n.flags & KRF_SYNC_ERROR); void (*get_route_info)(struct rte *, byte *buf); struct nexthop *nh; -- 2.21.0
