From: "stipa (Code Review)" Date: Fri, 10 Nov 2023 17:29:03 +0000 In-Reply-To: References: Reply-To: lstipakov@...277..., arne-openvpn@...1227..., heiko@...515..., 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="on8knyEOu+c="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[release/2.6]: Make --dns options apply for tap-windows6 driver List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld , d12fk Cc: openvpn-devel --on8knyEOu+c= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: d12fk, plaisthos, stipa. Hello d12fk, flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/423?usp=3Demail to look at the new patch set (#2). Change subject: Make --dns options apply for tap-windows6 driver ...................................................................... Make --dns options apply for tap-windows6 driver When tap-windows6 driver is used, both --dhcp-option and --dns options are applied with DHCP. When processing --dns options, we don't set "tuntap_options.dhcp_options" member, which is required for DHCP string to be sent to the driver. As a result, --dns options are not applied at all. Fix by adding missing assignment of tuntap_options.dhcp_options. Fixes https://github.com/OpenVPN/openvpn/issues/447 Change-Id: I24f43ad319bd1ca530fe17442d02a97412eb75c7 Signed-off-by: Lev Stipakov --- M src/openvpn/options.c 1 file changed, 3 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/23/423/2 diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 631ac73..f8d0b2e 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -1372,6 +1372,8 @@ { msg(M_WARN, "WARNING: couldn't copy all --dns search-domains t= o --dhcp-option"); } + + tt->dhcp_options |=3D DHCP_OPTIONS_DHCP_REQUIRED; } if (dns->servers) @@ -1409,6 +1411,7 @@ { msg(M_WARN, "WARNING: couldn't copy all --dns server addresses= to --dhcp-option"); } + tt->dhcp_options |=3D DHCP_OPTIONS_DHCP_OPTIONAL; } } #else /* if defined(_WIN32) || defined(TARGET_ANDROID) */ -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/423?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I24f43ad319bd1ca530fe17442d02a97412eb75c7 Gerrit-Change-Number: 423 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: d12fk Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: d12fk Gerrit-Attention: stipa Gerrit-MessageType: newpatchset --on8knyEOu+c= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: d12fk, plaisthos, stipa.

stipa uploaded patch set #2 to this change.

View Change

git pull ssh://gerrit.openvpn.net:29418/=
openvpn refs/changes/23/423/2
diff --git a/src/openvpn/options.c b/=
src/openvpn/options.c
index 631ac73..f8d0b2e 100644<= br>--- a/src/openvpn/options.c
+++ b/src/openvpn/opti= ons.c
@@ -1372,6 +1372,8 @@
{
msg(M_WARN, "WARNING: couldn't copy all -= -dns search-domains to --dhcp-option");
}
+
+ tt->dhcp_options |=3D DHCP_OPT= IONS_DHCP_REQUIRED;
}

if (dns->servers)

@@ -1409,6 +1411,7 @@ {
msg(M_WARN, "WARNING: c= ouldn't copy all --dns server addresses to --dhcp-option");=
}
= + tt->dhcp_options |=3D DHCP_OPTIONS_DHCP_OPTIONAL;
}

}
#else /* if defined(_WIN32) |= | defined(TARGET_ANDROID) */

To view, v= isit chan= ge 423. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I24f43ad319bd1ca530fe17442d0= 2a97412eb75c7
Gerrit-Change-Number: 423
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: d12fk <heiko@...515...>=
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: d12fk <heiko@...515...>= ;
Gerrit-Attention: stipa <lstipakov@...1663...= .>
Gerrit-MessageType: newpatchset
--on8knyEOu+c=--