From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Herbert Subject: [PATCH iproute 1/5] ila: Fix reporting of ILA locators and locator match Date: Wed, 22 Nov 2017 12:05:33 -0800 Message-ID: <20171122200537.26703-2-tom@quantonium.net> References: <20171122200537.26703-1-tom@quantonium.net> Cc: netdev@vger.kernel.org, rohit@quantonium.net, Tom Herbert To: stephen@networkplumber.org Return-path: Received: from mail-pf0-f196.google.com ([209.85.192.196]:42924 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751260AbdKVUGS (ORCPT ); Wed, 22 Nov 2017 15:06:18 -0500 Received: by mail-pf0-f196.google.com with SMTP id m88so12519146pfi.9 for ; Wed, 22 Nov 2017 12:06:17 -0800 (PST) In-Reply-To: <20171122200537.26703-1-tom@quantonium.net> Sender: netdev-owner@vger.kernel.org List-ID: Fix retrieval of locator value for RTA to get 64 bits instead of 32. Signed-off-by: Tom Herbert --- ip/ipila.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipila.c b/ip/ipila.c index 0403fc42..fe5c4d8b 100644 --- a/ip/ipila.c +++ b/ip/ipila.c @@ -79,7 +79,7 @@ static void print_ila_locid(FILE *fp, int attr, struct rtattr *tb[], int space) int i; if (tb[attr]) { - blen = print_addr64(rta_getattr_u32(tb[attr]), + blen = print_addr64(rta_getattr_u64(tb[attr]), abuf, sizeof(abuf)); fprintf(fp, "%s", abuf); } else { -- 2.11.0