|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
From 610f5ddb3c4ae3b08ddb1334bbdcbcf7799f091f Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
From: Susant Sahani <145210+ssahani@users.noreply.github.com>
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
Date: Wed, 18 Oct 2017 14:42:59 +0530
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
Subject: [PATCH] networkd: Consider linkLocalAddressing state while
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
configuring ndisc. (#7012)
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
If linkLocalAddressing is disabled in for the interface still then
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
we look for ndisc configured or not in link_check_ready.
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
Link local is used automatic address configuration and neighbor discovery protocol.
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
If link local is disabled we should not configure ndisc.
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
Fixes #2713, #6441, #5841.
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
(cherry picked from commit 702c979fefc6d3e69c5982b8469ec8a47792d62f)
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
src/network/networkd-link.c | 3 +++
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
1 file changed, 3 insertions(+)
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
index 6b591271a0..c581a49b4e 100644
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
--- a/src/network/networkd-link.c
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
+++ b/src/network/networkd-link.c
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
@@ -226,6 +226,9 @@ static bool link_ipv6_accept_ra_enabled(Link *link) {
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
if (!link->network)
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
return false;
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
+ if (!link_ipv6ll_enabled(link))
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
+ return false;
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
+
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
/* If unset use system default (enabled if local forwarding is disabled.
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
* disabled if local forwarding is enabled).
|
|
Zbigniew Jędrzejewski-Szmek |
35bb94 |
* If set, ignore or enforce RA independent of local forwarding state.
|