From: "cron2 (Code Review)" Date: Thu, 12 Sep 2024 14:30:36 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., marco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="CHMa6USWuPQ="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: tun: removed unnecessary route installations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: mrbff , plaisthos , flichtenheld Cc: openvpn-devel --CHMa6USWuPQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#4) to the change originally created by= mrbff. ( http://gerrit.openvpn.net/c/openvpn/+/731?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by cron2 Change subject: tun: removed unnecessary route installations ...................................................................... tun: removed unnecessary route installations Removed superfluous calls to 'add_route_ipv6' for adding ipv6 routes after = tun opening in OpenBSD, NetBSD and Darwin. Change-Id: I235891212b15277349810913c9c1763da5c48587 Signed-off-by: Marco Baffo Acked-by: Gert Doering Message-Id: <20240912142421.703-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29= 217.html Signed-off-by: Gert Doering --- M src/openvpn/tun.c 1 file changed, 1 insertion(+), 7 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/31/731/4 diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 739e008..82c5c00 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -1008,8 +1008,7 @@ #endif /* ifdef _WIN32 */ } -#if defined(_WIN32) \ - || defined(TARGET_DARWIN) || defined(TARGET_NETBSD) || defined(TARGET_= OPENBSD) +#if defined(_WIN32) /* some of the platforms will auto-add a "network route" pointing * to the interface on "ifconfig tunX 2001:db8::1/64", others need @@ -1200,11 +1199,6 @@ "FreeBSD BSD 'ifconfig inet6 -ifdisabled' failed"= ); #endif -#if defined(TARGET_OPENBSD) || defined(TARGET_NETBSD) \ - || defined(TARGET_DARWIN) - /* and, hooray, we explicitly need to add a route... */ - add_route_connected_v6_net(tt, es); -#endif #elif defined(TARGET_AIX) argv_printf(&argv, "%s %s inet6 %s/%d mtu %d up", IFCONFIG_PATH, ifnam= e, ifconfig_ipv6_local, tt->netbits_ipv6, tun_mtu); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/731?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I235891212b15277349810913c9c1763da5c48587 Gerrit-Change-Number: 731 Gerrit-PatchSet: 4 Gerrit-Owner: mrbff Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --CHMa6USWuPQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #4 to the change originally cr= eated by mrbff.

View Change

The following approvals got outdated and= were removed: Code-Review+2 by cron2

tun: removed unnecessary route installations

= Removed superfluous calls to 'add_route_ipv6' for adding ipv6 route= s after tun opening in OpenBSD, NetBSD and Darwin.

Change-Id: I23589= 1212b15277349810913c9c1763da5c48587
Signed-off-by: Marco Baffo <marco= @...2726...>
Acked-by: Gert Doering <gert@...1296...>
Messag= e-Id: <20240912142421.703-1-gert@...1296...>
URL: https://www.mail= -archive.com/openvpn-devel@lists.sourceforge.net/msg29217.html
Signed-of= f-by: Gert Doering <gert@...1296...>
---
M src/openvpn/tun.c1 file changed, 1 insertion(+), 7 deletions(-)

git pull ssh://ge=
rrit.openvpn.net:29418/openvpn refs/changes/31/731/4
diff --git a/s=
rc/openvpn/tun.c b/src/openvpn/tun.c
index 739e008..82c5c00= 100644
--- a/src/openvpn/tun.c
+++ b/src/o= penvpn/tun.c
@@ -1008,8 +1008,7 @@
#endif = /* ifdef _WIN32 */
}

-#if defined(_WIN32) \
- || defined(TARGET_DARWIN) || defin= ed(TARGET_NETBSD) || defined(TARGET_OPENBSD)
+#if defined(_WIN32)

/* some of the platforms will auto-add a "network route" poi= nting
* to the interface on "ifconfig tunX 2001:db8:= :1/64", others need
@@ -1200,11 +1199,6 @@
<= span> "FreeBSD BSD 'ifconfig inet6 -ifdis= abled' failed");
#endif
<= br>-#if defined(TARGET_OPENBSD) |= | defined(TARGET_NETBSD) \
- || defined(TARGET_DARWIN)
- /* and, hooray, we explicitly need to add a route... */

- add_route_connected_= v6_net(tt, es);
-#endif=
#elif defined(TARGET_AIX)
argv_print= f(&argv, "%s %s inet6 %s/%d mtu %d up", IFCONFIG_PATH, ifname= ,
ifconfig_ipv6_local, tt->netbits_ipv6= , tun_mtu);

To view, visit change 731. To un= subscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I235891212b15277349810913c9c= 1763da5c48587
Gerrit-Change-Number: 731
Gerrit-PatchSet: 4
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--CHMa6USWuPQ=--