[lxc-devel] [lxc/lxc] 03ca4a: start: call lxc_find_gateway_addresses early
Christian Brauner
noreply at github.com
Fri Jul 5 09:44:47 UTC 2019
Branch: refs/heads/master
Home: https://github.com/lxc/lxc
Commit: 03ca4af8fa4bf68239b78217b5b0da24f3ae4565
https://github.com/lxc/lxc/commit/03ca4af8fa4bf68239b78217b5b0da24f3ae4565
Author: Thomas Parrott <thomas.parrott at canonical.com>
Date: 2019-07-05 (Fri, 05 Jul 2019)
Changed paths:
M src/lxc/network.c
M src/lxc/start.c
Log Message:
-----------
start: call lxc_find_gateway_addresses early
This restores the lxc.net.x.ipv4.gateway = auto and
lxc.net.x.ipv6.gateway = auto functionality.
When the child is created the parent and child have different views of
struct lxc_handler since - obviously - virtual memory is duplicated. So any
changes to done by the parent that the child should see need to be IPCed to it.
For any non-actual device creation stuff this does not make much sense. This
includes finding gateway addresses. Move it back prior to clone().
Fixes #3078
Signed-off-by: Thomas Parrott <thomas.parrott at canonical.com>
[christian.brauner at ubuntu.com: non-functional changes and update commit message]
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
Commit: 9c238bc6bf55a5f55a32a86a111b9be0dab78a5f
https://github.com/lxc/lxc/commit/9c238bc6bf55a5f55a32a86a111b9be0dab78a5f
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2019-07-05 (Fri, 05 Jul 2019)
Changed paths:
M src/lxc/network.c
M src/lxc/start.c
Log Message:
-----------
Merge pull request #3081 from brauner/2019-07-05/network_unification_fixes
start: call lxc_find_gateway_addresses early
Compare: https://github.com/lxc/lxc/compare/306ca14a2969...9c238bc6bf55
More information about the lxc-devel
mailing list