From: "mrbff (Code Review)" Date: Mon, 9 Sep 2024 15:36:52 +0000 In-Reply-To: References: Reply-To: marco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <3352a481e7111cca0ae55fb7461c5220b3758d6d-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="rQnGPNRPoiY="; 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: plaisthos , flichtenheld Cc: openvpn-devel --rQnGPNRPoiY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: mrbff, plaisthos. Hello flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/731?usp=3Demail to look at the new patch set (#2). The change is no longer submittable: checks~ChecksSubmitRule is unsatisfied= now. 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 --- M src/openvpn/tun.c 1 file changed, 1 insertion(+), 7 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/31/731/2 diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 28fca0e..c3c321c 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 @@ -1201,11 +1200,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, is_multipoint); -#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: 2 Gerrit-Owner: mrbff Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: mrbff Gerrit-MessageType: newpatchset --rQnGPNRPoiY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: mrbff, plaisthos.

mrbff uploaded patch set #2 to this change.

View Change

The change is no longer submittable: checks~ChecksSubmitRule is uns= atisfied now.

tun: removed unnecessary route installations

Removed s= uperfluous calls to 'add_route_ipv6' for adding ipv6 routes after t= un opening in OpenBSD, NetBSD and Darwin.

Change-Id: I235891212b1527= 7349810913c9c1763da5c48587
Signed-off-by: Marco Baffo <marco@...2786...= ..>
---
M src/openvpn/tun.c
1 file changed, 1 insertion(+), 7 d= eletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/=
changes/31/731/2
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c=

index 28fca0e..c3c321c 100644
--- a/src/op= envpn/tun.c
+++ b/src/openvpn/tun.c
@@ -100= 8,8 +1008,7 @@
#endif /* ifdef _WIN32 */
= }

-#i= f defined(_WIN32) \
= - || defined(TARGET_DARWIN) || defined(TARGET_NETBSD) || defined(TARGET_= OPENBSD)
+#if defined= (_WIN32)

/* some of the platforms will a= uto-add a "network route" pointing
* to the int= erface on "ifconfig tunX 2001:db8::1/64", others need
<= span>@@ -1201,11 +1200,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, is_multipoint);
-#endif
#el= if defined(TARGET_AIX)
argv_printf(&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 unsubscribe, or for hel= p writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I235891212b15277349810913c9c= 1763da5c48587
Gerrit-Change-Number: 731
Gerrit-PatchSet: 2
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: mrbff <marco@...2726...&g= t;
Gerrit-MessageType: newpatchset
--rQnGPNRPoiY=--