diff options
author | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 19:45:10 +0000 |
---|---|---|
committer | Johan van Selst <johans@FreeBSD.org> | 2011-07-25 19:45:10 +0000 |
commit | ffece4b33137dbcb4f46f5278109cdf983162146 (patch) | |
tree | 1b0aa8c5d6efafff645852ae84c4f8f241629604 /net/mrouted | |
parent | 044d86321d919c6c9662f504485724991053bb2a (diff) | |
download | ports-ffece4b33137dbcb4f46f5278109cdf983162146.tar.gz ports-ffece4b33137dbcb4f46f5278109cdf983162146.zip |
Notes
Diffstat (limited to 'net/mrouted')
-rw-r--r-- | net/mrouted/files/patch-route.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/mrouted/files/patch-route.c b/net/mrouted/files/patch-route.c new file mode 100644 index 000000000000..dcdb802bfce4 --- /dev/null +++ b/net/mrouted/files/patch-route.c @@ -0,0 +1,15 @@ +--- route.c.orig 2011-07-25 21:42:18.000000000 +0200 ++++ route.c 2011-07-25 21:42:46.000000000 +0200 +@@ -1399,8 +1399,10 @@ void dump_routes(FILE *fp) + inet_fmts(r->rt_origin, r->rt_originmask, s1, sizeof(s1)), + (r->rt_gateway == 0) ? "" : inet_fmt(r->rt_gateway, s2, sizeof(s2))); + +- fprintf(fp, (r->rt_metric == UNREACHABLE) ? " NR " : "%4u ", +- r->rt_metric); ++ if (r->rt_metric == UNREACHABLE) ++ fprintf(fp, " NR "); ++ else ++ fprintf(fp, "%4u ", r->rt_metric); + + fprintf(fp, " %3u %c%c %3u ", r->rt_timer, + (r->rt_flags & RTF_CHANGED) ? 'C' : '.', |