geneve: fix IPv6 remote address reporting

Since we can only configure unicast, we probably want to be able to
display unicast, rather than multicast.

Fixes: 906ac5437a ("geneve: add support for IPv6 link partners")
Signed-off-by: Edward Cree <ecree@solarflare.com>
This commit is contained in:
Edward Cree 2016-05-06 15:28:25 +01:00 committed by Stephen Hemminger
parent 7c337e2c20
commit 2642b6b03e

View File

@ -204,7 +204,7 @@ static void geneve_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
memcpy(&addr, RTA_DATA(tb[IFLA_GENEVE_REMOTE6]), sizeof(struct in6_addr)); memcpy(&addr, RTA_DATA(tb[IFLA_GENEVE_REMOTE6]), sizeof(struct in6_addr));
if (memcmp(&addr, &in6addr_any, sizeof(addr)) != 0) { if (memcmp(&addr, &in6addr_any, sizeof(addr)) != 0) {
if (IN6_IS_ADDR_MULTICAST(&addr)) if (!IN6_IS_ADDR_MULTICAST(&addr))
fprintf(f, "remote %s ", fprintf(f, "remote %s ",
format_host(AF_INET6, sizeof(struct in6_addr), &addr)); format_host(AF_INET6, sizeof(struct in6_addr), &addr));
} }