diff options
author | Michele Marchetto <michele@cvs.openbsd.org> | 2009-07-17 09:14:27 +0000 |
---|---|---|
committer | Michele Marchetto <michele@cvs.openbsd.org> | 2009-07-17 09:14:27 +0000 |
commit | 77161d1e0ddedb6e70673c483438ab00c4053efa (patch) | |
tree | a281a9949670a71efc8bca2bd13616e6e97f4471 | |
parent | c12332ee32f3ef18e255ad504be47da143e835fb (diff) |
Correcly mark as 'R' ripd(8) inserted routes even
if they have been modified by ldpd(8).
Spotted by Rolf Sommerhalder
-rw-r--r-- | usr.sbin/ripctl/ripctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ripctl/ripctl.c b/usr.sbin/ripctl/ripctl.c index 0471dd66f88..4578351568f 100644 --- a/usr.sbin/ripctl/ripctl.c +++ b/usr.sbin/ripctl/ripctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ripctl.c,v 1.7 2009/06/06 08:20:55 eric Exp $ +/* $OpenBSD: ripctl.c,v 1.8 2009/07/17 09:14:26 michele Exp $ * * Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it> * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -385,7 +385,7 @@ show_fib_msg(struct imsg *imsg) else printf("*"); - if (!(k->flags & F_KERNEL)) + if (k->flags & F_RIPD_INSERTED) printf("R"); else if (k->flags & F_CONNECTED) printf("C"); |