Commit 2642b6b0 authored by Edward Cree's avatar Edward Cree Committed by Stephen Hemminger

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: 906ac543 ("geneve: add support for IPv6 link partners")
Signed-off-by: default avatarEdward Cree <ecree@solarflare.com>
parent 7c337e2c
......@@ -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));
if (memcmp(&addr, &in6addr_any, sizeof(addr)) != 0) {
if (IN6_IS_ADDR_MULTICAST(&addr))
if (!IN6_IS_ADDR_MULTICAST(&addr))
fprintf(f, "remote %s ",
format_host(AF_INET6, sizeof(struct in6_addr), &addr));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment