|
|
049c96 |
From 4290eadae6233b5d7bc7d92821dbdc0f8fee07a5 Mon Sep 17 00:00:00 2001
|
|
|
049c96 |
From: Phil Sutter <psutter@redhat.com>
|
|
|
049c96 |
Date: Sat, 2 Jul 2016 12:46:47 +0200
|
|
|
049c96 |
Subject: [PATCH] geneve: fix IPv6 remote address reporting
|
|
|
049c96 |
|
|
|
049c96 |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1339178
|
|
|
049c96 |
Upstream Status: iproute2.git commit 2642b6b03e546
|
|
|
049c96 |
|
|
|
049c96 |
commit 2642b6b03e546b04e163a7cb2585ece791324a05
|
|
|
049c96 |
Author: Edward Cree <ecree@solarflare.com>
|
|
|
049c96 |
Date: Fri May 6 15:28:25 2016 +0100
|
|
|
049c96 |
|
|
|
049c96 |
geneve: fix IPv6 remote address reporting
|
|
|
049c96 |
|
|
|
049c96 |
Since we can only configure unicast, we probably want to be able to
|
|
|
049c96 |
display unicast, rather than multicast.
|
|
|
049c96 |
|
|
|
049c96 |
Fixes: 906ac5437ab8 ("geneve: add support for IPv6 link partners")
|
|
|
049c96 |
Signed-off-by: Edward Cree <ecree@solarflare.com>
|
|
|
049c96 |
---
|
|
|
049c96 |
ip/iplink_geneve.c | 2 +-
|
|
|
049c96 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
049c96 |
|
|
|
049c96 |
diff --git a/ip/iplink_geneve.c b/ip/iplink_geneve.c
|
|
|
049c96 |
index fb0c6b1..905c537 100644
|
|
|
049c96 |
--- a/ip/iplink_geneve.c
|
|
|
049c96 |
+++ b/ip/iplink_geneve.c
|
|
|
049c96 |
@@ -203,7 +203,7 @@ static void geneve_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
|
|
|
049c96 |
struct in6_addr addr;
|
|
|
049c96 |
memcpy(&addr, RTA_DATA(tb[IFLA_GENEVE_REMOTE6]), sizeof(struct in6_addr));
|
|
|
049c96 |
if (memcmp(&addr, &in6addr_any, sizeof(addr)) != 0) {
|
|
|
049c96 |
- if (IN6_IS_ADDR_MULTICAST(&addr))
|
|
|
049c96 |
+ if (!IN6_IS_ADDR_MULTICAST(&addr))
|
|
|
049c96 |
fprintf(f, "remote %s ",
|
|
|
049c96 |
format_host(AF_INET6, sizeof(struct in6_addr), &addr, s1, sizeof(s1)));
|
|
|
049c96 |
}
|
|
|
049c96 |
--
|
|
|
049c96 |
1.8.3.1
|
|
|
049c96 |
|