From: Yu Watanabe Date: Mon, 6 Dec 2021 20:08:15 +0000 (+0900) Subject: network: tunnel: create tunnels with AssignToLoopback=yes independently of .network... X-Git-Tag: v250-rc3~65^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e29133085d9987169df8dee59510acf4ce6b18e;p=thirdparty%2Fsystemd.git network: tunnel: create tunnels with AssignToLoopback=yes independently of .network file --- diff --git a/src/network/netdev/tunnel.c b/src/network/netdev/tunnel.c index 5dbbb83975d..261c211c7df 100644 --- a/src/network/netdev/tunnel.c +++ b/src/network/netdev/tunnel.c @@ -642,6 +642,9 @@ static int netdev_tunnel_verify(NetDev *netdev, const char *filename) { if (netdev->kind == NETDEV_KIND_VTI) t->family = AF_INET; + if (t->assign_to_loopback) + t->independent = true; + return 0; }