Message ID | ed2fe9e4bb773ae60f69b9f30963a3083104de02-HTML@gerrit.openvpn.net |
---|---|
State | Superseded |
Headers | show
Return-Path: <openvpn-devel-bounces@lists.sourceforge.net> Delivered-To: patchwork@openvpn.net Received: by 2002:a05:7000:998b:b0:5e7:b9eb:58e8 with SMTP id d11csp4708755mav; Tue, 24 Dec 2024 08:06:46 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVgOMqhkiS2zQmt7VEF7uLSAAM0V0FlLz1NNj68Dwwvf3cFHfinWN7dcl4kBIXHW4CZh7VXlG8fo0I=@openvpn.net X-Google-Smtp-Source: AGHT+IF0bNvAZ08TFk9BGRM3tUr6CUcEPoAut8cYUmsgTT4UVQ6dRoCwUsGAd6hjvap33Xsu7JbZ X-Received: by 2002:a05:6830:4122:b0:71e:1c5:4f9a with SMTP id 46e09a7af769-720ff8d553cmr11741157a34.25.1735056405815; Tue, 24 Dec 2024 08:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1735056405; cv=none; d=google.com; s=arc-20240605; b=IyJYa6+idcgD0Q+lFJ4TYZW6lQ7KRXLh76N3gPDoU5qB92iJTdId8ng1JH7KowcF5V yTsc7e6uNFQotIg3UKq2+/I0CJVp49iNh3J+9wJnG3CJDaxo8t6fBdX5INXlmCFLKpMC re1MNMOOP9lcoyqHmPcbeGFQA/0nCK2/j/N+8fAckBsRPcSNX6n9SnRgbux6rMubRg76 XZ/Gx33Q4xNl3sczHibZ+2f1hAQUdcv51s0AC9uuj4cgOUe457bjOUmEqYSNQejQyDLD 7oB60s6wQkkOKlMyFemkqYIg/6FDg3YkTGr3SV0zJCimwVOgSFKxYqo+1wIANpbAzf2Z EdrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=errors-to:cc:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:user-agent :mime-version:message-id:references:auto-submitted:to:date:from :dkim-signature:dkim-signature:dkim-signature; bh=uVCSZ58IJgnyu09KCGwkRfyzlHCP64Y4LSAfukh8wAE=; fh=U7wEyxtwz2o5+UdevFSA47vNeG9knhWH0KV//QhD5a0=; b=KpeNZCI6pXH0k7mD7dFCHeI/Ojc+4RRaElEBBSRWE4D03nvxvhTWtU7MUbDFJTyHcR rjDYHSdn1s49tA/gcOy7HN0akVSOMQyd+aADFHUMuGT44ftcwWzmmkdmuYMi/+HFd9u2 UKObh0kLxfe1McoAyoTRdmqFo/2Gwje6iQVRYCZJ3H7ymy8G06OovUL6K7DmyQUgwAfA w58vRg1JD3stBcchakvXUsRVw0XkFVwGbrcfdwOnmm5LlYFYTBnpBIsDDxlP5trqMcr3 u3knXvPLbdIp44AKFOR/YNjC1/TOpeyMkIHHql1W0Dsiejv6SGAqwcxD/8W2vElQcFdO kUhA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=fpC9wynS; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=WzefHza8; dkim=neutral (body hash did not verify) header.i=@openvpn.net header.s=google header.b=gtIpOQxp; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvpn.net; dara=fail header.i=@openvpn.net Received: from lists.sourceforge.net (lists.sourceforge.net. [216.105.38.7]) by mx.google.com with ESMTPS id 46e09a7af769-71fc9a4216esi6785141a34.258.2024.12.24.08.06.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Dec 2024 08:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) client-ip=216.105.38.7; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sourceforge.net header.s=x header.b=fpC9wynS; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=WzefHza8; dkim=neutral (body hash did not verify) header.i=@openvpn.net header.s=google header.b=gtIpOQxp; spf=pass (google.com: domain of openvpn-devel-bounces@lists.sourceforge.net designates 216.105.38.7 as permitted sender) smtp.mailfrom=openvpn-devel-bounces@lists.sourceforge.net; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=openvpn.net; dara=fail header.i=@openvpn.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1tQ7Qc-0000hg-3y; Tue, 24 Dec 2024 16:06:38 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <gerrit@openvpn.net>) id 1tQ7Qa-0000hZ-2Q for openvpn-devel@lists.sourceforge.net; Tue, 24 Dec 2024 16:06:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:Content-Transfer-Encoding:MIME-Version :Message-ID:Reply-To:References:Subject:List-Unsubscribe:List-Id:Cc:To:Date: From:Sender:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:List-Help: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ndSNB7CTIMqWSCqsnDAk17vPG6S3SwpI7aqw4Xh84Jk=; b=fpC9wynSucvf6/SoQocAF5yika uvH4sr0wF+6VhdPECMRhWY+NXkKPaGEYViwZuz31UZpxwxwLYCTH3QDXsTGTegPAz1HT0mxT1OQvt NDK8lxdbuVxtiRk5STbfNQ7b70UZ2ln3/D6RP6hIZ5bAi/nLKg3A2ulGqfodT54gYb2s=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Reply-To: References:Subject:List-Unsubscribe:List-Id:Cc:To:Date:From:Sender:Content-ID :Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To: Resent-Cc:Resent-Message-ID:In-Reply-To:List-Help:List-Subscribe:List-Post: List-Owner:List-Archive; bh=ndSNB7CTIMqWSCqsnDAk17vPG6S3SwpI7aqw4Xh84Jk=; b=W zefHza8SUOp35BeR8hOrWkVE5rAEg9JTt+AKLjWNtJIBpBLPR4nm/eOFa9zKor+D6c9JeauerWkT9 VUxlsa7SkQ9ITbBGbf17fAdZAOD5+sYExUl8n/ExCvN/6CkZMKnychMjPZrkTztB3v5JscvaQF3GA htpW+PYBWOtxQTmI=; Received: from mail-wr1-f42.google.com ([209.85.221.42]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1tQ7QY-0006rg-Vp for openvpn-devel@lists.sourceforge.net; Tue, 24 Dec 2024 16:06:35 +0000 Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-3862b40a6e0so2987200f8f.0 for <openvpn-devel@lists.sourceforge.net>; Tue, 24 Dec 2024 08:06:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvpn.net; s=google; t=1735056388; x=1735661188; darn=lists.sourceforge.net; h=user-agent:content-disposition:content-transfer-encoding :mime-version:message-id:reply-to:references:subject :list-unsubscribe:list-id:auto-submitted:cc:to:date:from:from:to:cc :subject:date:message-id:reply-to; bh=ndSNB7CTIMqWSCqsnDAk17vPG6S3SwpI7aqw4Xh84Jk=; b=gtIpOQxpkhnHFX6zpu0OFra8xUN+gPybhsVVtEPoqz/jRjCq00SodjjRdwXqsnV4bZ gW2Mu4FCVG2V8Kbj9GvZEh4YEMPaaTAwlcKRqmlP7MIY3W5XNQ91sIa8uawYaWIkVMRP Ve9uIYmw4HKsNs8bkK8jUz2gCXXF/cAgIHVgCTG4SsTmbdnzlNcfiaDdOtSgfIWvgh2n BZu9t04mc/8JTLzcIMcB2OUyoJhVNdIu4Hk1/AEmF3eVfyS+9K+kZTM2st9FukhvwhM8 RNkhsZHntFiTCzDFUoZghyFm9smqSNfJLQkwwCRlZNhnPfSD3F/CcdiIMzcOps5YgntL Gwgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735056388; x=1735661188; h=user-agent:content-disposition:content-transfer-encoding :mime-version:message-id:reply-to:references:subject :list-unsubscribe:list-id:auto-submitted:cc:to:date:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ndSNB7CTIMqWSCqsnDAk17vPG6S3SwpI7aqw4Xh84Jk=; b=LUmPPiO183kaAzO3gi/0os0gHJ7Sm1CmVZVTlbkOGCP+V05LFMbMoSpqEfY9HbDT/k kDS0pEVU4RZZ3BJeUVD4YtQWxmved5dZxhVEotHBRX54S9DHLjf0hB9Yv2/PXgiCqZdf JHSlnwIDhzCgTZaby3e9ps0eVo0HWlRJTG+xjN1kl44QFMPvtTCYu8/BBA+jltwhezpu o6oWhpPshS4ti1Q/cMtr+2LMCMZa7QoGBVBmA+7ZBgDHGIQPUrxiu9DkH9cNgjVYQKf3 m6UMsgNb7wGs/L+0eKxf0dRajYDQMKaGFa8qNUITvG5lIqe6mHK+U8EnAyietoT2wWFa ip6A== X-Gm-Message-State: AOJu0YwlD6wN27o7D2nwdVwLkrUReNF9rmtrcNMdpVPCE8o4UfHJJkDE uou4QLLz2EZlheWcHJin2k54jaBqDG3hY7FiAS4WodGZcSzaZim+L58rBiaXm+I= X-Gm-Gg: ASbGnctv53U8aVZcg7wwTIRF1VM3hr98bM8rQeLGUsyAmOA+VQWRj+5E/6t4u5HnCtV Y+fnVuQoPk+C5BgjIa1+fbwRWA+xYX0UkxV8uWnf1g4RVEnVePco+nzsIXJHlDi5x9LPoZP5H5j xNnxWKbrcpvjW+GgmFlK390SfSwUwpRtH5mLkC3cOIyfktFwSS48LmfhyX1HI06vKYDAU3LPdu6 ECkDHdNS3MA8csdo/EnaCCOM7Fi7RE2T4OmwyrSOsg+BpufMX3fRkwzH6pSfgie+09Oy46WDz3U tqBDzc6oZ0cHEEUPPUgEZ8lhS82M1BPMLK9EbmnAvW0ZCS4g X-Received: by 2002:a5d:47cf:0:b0:385:ee59:44eb with SMTP id ffacd0b85a97d-38a221fa9ffmr15532410f8f.33.1735056388357; Tue, 24 Dec 2024 08:06:28 -0800 (PST) Received: from gerrit.openvpn.in (ec2-18-159-0-78.eu-central-1.compute.amazonaws.com. [18.159.0.78]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c8289a0sm14895711f8f.7.2024.12.24.08.06.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Dec 2024 08:06:27 -0800 (PST) From: "stipa (Code Review)" <gerrit@openvpn.net> X-Google-Original-From: "stipa (Code Review)" <gerrit@gerrit.openvpn.in> X-Gerrit-PatchSet: 1 Date: Tue, 24 Dec 2024 16:06:27 +0000 To: plaisthos <arne-openvpn@rfc2549.org>, flichtenheld <frank@lichtenheld.com> Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange X-Gerrit-Change-Id: I87e4593e6a548bacd40b840cd241950019fa457d X-Gerrit-Change-Number: 845 X-Gerrit-Project: openvpn X-Gerrit-ChangeURL: <http://gerrit.openvpn.net/c/openvpn/+/845?usp=email> X-Gerrit-Commit: bd577151dc1800f506f3e63b899f97224a0fe081 References: <gerrit.1735056384000.I87e4593e6a548bacd40b840cd241950019fa457d@gerrit.openvpn.net> Message-ID: <ed2fe9e4bb773ae60f69b9f30963a3083104de02-HTML@gerrit.openvpn.net> MIME-Version: 1.0 User-Agent: Gerrit/3.8.2 X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "util-spamd-1.v13.lw.sourceforge.com", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit Content analysis details: (-0.2 points, 6.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.42 listed in list.dnswl.org] 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [209.85.221.42 listed in bl.score.senderscore.com] 0.0 RCVD_IN_VALIDITY_SAFE_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [209.85.221.42 listed in sa-accredit.habeas.com] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.42 listed in wl.mailspike.net] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 WEIRD_PORT URI: Uses non-standard port number for HTTP 0.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted Colors in HTML X-Headers-End: 1tQ7QY-0006rg-Vp Subject: [Openvpn-devel] [XS] Change in openvpn[master]: repair DNS address option X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <openvpn-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=openvpn-devel> List-Post: <mailto:openvpn-devel@lists.sourceforge.net> List-Help: <mailto:openvpn-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/openvpn-devel>, <mailto:openvpn-devel-request@lists.sourceforge.net?subject=subscribe> Reply-To: lstipakov@gmail.com, arne-openvpn@rfc2549.org, openvpn-devel@lists.sourceforge.net, frank@lichtenheld.com Cc: openvpn-devel <openvpn-devel@lists.sourceforge.net> Content-Type: multipart/mixed; boundary="===============0411724437322705351==" Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1819338505943467430?= X-GMAIL-MSGID: =?utf-8?q?1819338505943467430?= X-getmail-filter-classifier: gerrit message type newchange |
Series |
[Openvpn-devel,XS] Change in openvpn[master]: repair DNS address option
|
expand
|
diff --git a/src/openvpn/options.c b/src/openvpn/options.c index b2a3a8b..20e8d55 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -1390,7 +1390,7 @@ overflow = true; continue; } - tt->dns[tt->dns_len++] = server->addr[i].in.a4.s_addr; + tt->dns[tt->dns_len++] = ntohl(server->addr[i].in.a4.s_addr); } else {
Attention is currently required from: flichtenheld, plaisthos. Hello plaisthos, flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/845?usp=email to review the following change. Change subject: repair DNS address option ...................................................................... repair DNS address option Commit 6f2d222 ("dns: store IPv4 addresses in network byte order") changed the internal representation of IPv4 address within DNS settings to network byte order, however later this value is copied into tuntap_options, where IPv4 addresses are assumed to be in host byte order (see lots of occurences of "htonl(tt->" in tun.c). As a consequence, DNS server address is set incorrectly, like 4.4.8.8 instead of 8.8.4.4 Fix by converting address to host byte order when copying from DNS options to tuntap_options. Change-Id: I87e4593e6a548bacd40b840cd241950019fa457d Signed-off-by: Lev Stipakov <lev@openvpn.net> --- M src/openvpn/options.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/845/1