[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120410084857.48f8397f@nehalam.linuxnetplumber.net>
Date: Tue, 10 Apr 2012 08:48:57 -0700
From: Stephen Hemminger <shemminger@...tta.com>
To: jorge@...2.net
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH] iproute: show metrics as an unsigned value
On Tue, 10 Apr 2012 17:20:26 +0200
"Jorge Boncompte [DTI2]" <jorge@...2.net> wrote:
> From: "Jorge Boncompte [DTI2]" <jorge@...2.net>
>
> Avoids showing negative metrics.
>
> Signed-off-by: Jorge Boncompte [DTI2] <jorge@...2.net>
> ---
> ip/iproute.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/ip/iproute.c b/ip/iproute.c
> index c97f979..2d15c01 100644
> --- a/ip/iproute.c
> +++ b/ip/iproute.c
> @@ -404,7 +404,7 @@ int print_route(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg)
> abuf, sizeof(abuf)));
> }
> if (tb[RTA_PRIORITY])
> - fprintf(fp, " metric %d ", *(__u32*)RTA_DATA(tb[RTA_PRIORITY]));
> + fprintf(fp, " metric %u ", *(__u32*)RTA_DATA(tb[RTA_PRIORITY]));
> if (r->rtm_flags & RTNH_F_DEAD)
> fprintf(fp, "dead ");
> if (r->rtm_flags & RTNH_F_ONLINK)
Applied
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists