Message ID | 6e4ca50667afb356e895dfe791f872ef67d9af99-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:9b51:b0:5e7:b9eb:58e8 with SMTP id b17csp3413355max; Wed, 19 Feb 2025 23:40:39 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWUMmDDJ7CPAw0Ys6GcL5QbkQRg6oNQ2ID68QAbiXdLpDy0WUsPSEfs5t16ctOvmxRPVDZrx8wCSok=@openvpn.net X-Google-Smtp-Source: AGHT+IFp6reNHNkQGZnd5hIz74p21KXpwFuwGc7UY2SLQ5LOvn0Fi2rIN04yeCR/xtYXan7oNzz9 X-Received: by 2002:a05:6e02:2405:b0:3d0:405d:e94f with SMTP id e9e14a558f8ab-3d2b536d99amr67980105ab.17.1740037238877; Wed, 19 Feb 2025 23:40:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1740037238; cv=none; d=google.com; s=arc-20240605; b=YhTtsqEICmsIdC6EyFD0/YVNy2oShmPHqO4ATc2LEqPfUV4k+hO+GpNSnFCEaZeOnB oF+jpyN/mW98alujpN3TNiPaXz370zPxHvHGmq3BNsRs9+DeRhRhkkL7UBkXhZ+c9IZ3 ED48amAe6K0xO5F8sPPTowrh2oeh2N0TycxhT4ndkwYruLgJdTlDFVeq0R6qw1iDo2y6 odPi5+p8RtE+DxpY4L9WXezBiBmj9Za0aHjvd+a/seqjJ/rAthp1llQPw015sPgkfHSm jOwDly1LGrjCVKyI1P2+OGeIpf1fSTbCOdVDaB0hChul7hZuSBE5cPwF4nH4lxuZ1v6V 9wEQ== 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=BuG5No/loWjKhU68E6UDfGtDUZZDcfbZZKFWD/+davI=; fh=U7wEyxtwz2o5+UdevFSA47vNeG9knhWH0KV//QhD5a0=; b=IrD/7f3Y7NqhuRnSmHFpx9e3XOHptjX3jLxbu7owlxsIe5JOuo+KDPe7yWpCYujftg CLwq1AFLGWx4CA5+5kamHqoIr35pOxdKZS6bq9V+7e3jlCLOXtn5uLBMCuGojNJTqwYk R6kFpwqE3E/9ygMD014tEuMonjkP+QLbHsxWwkfoVUNELGWMX000DU0KN5luRM+LCQJ4 4fjb2mE7TRixVcNNgqksu5YyGpYvEuYaKNp0XS4WuPgy04LHcqkU5nkhyJU9a3K7Czz6 SUT4fYBRxZtROlXyVDq9bPoUbTW4v8vCEyUvMFO8lfyaosUHk/zy4+ZXGam3pjXcygVp ChLQ==; 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=dXEBmrcn; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=b4eudVQy; dkim=neutral (body hash did not verify) header.i=@openvpn.net header.s=google header.b=ZC43irVZ; 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 e9e14a558f8ab-3d2a4a55b9csi77747155ab.89.2025.02.19.23.40.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Feb 2025 23:40:38 -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=dXEBmrcn; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=b4eudVQy; dkim=neutral (body hash did not verify) header.i=@openvpn.net header.s=google header.b=ZC43irVZ; 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-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <openvpn-devel-bounces@lists.sourceforge.net>) id 1tl1Ah-0004BK-E2; Thu, 20 Feb 2025 07:40:36 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.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 1tl1Af-0004B2-Nt for openvpn-devel@lists.sourceforge.net; Thu, 20 Feb 2025 07:40:34 +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=NBV+8G4wiFZQI5gaK1gBv0XYeuzRKSto6xXvyIKW3BU=; b=dXEBmrcnsFkV3eFsqfpljBxUfe 0BoSdyf0QOU/RKBazc9Tv9WaJZ9PCIyiBDyK4WO07lIWGfY5HXJOEQaRyspFUi1GoP/1ChyGaYD4Q 6+p08NNAJhqeAhJKJy6r2dr5WG+CSLX/UpHAYZc3TNKKXyd19SAK875uKV33PsXSQiQ0=; 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=NBV+8G4wiFZQI5gaK1gBv0XYeuzRKSto6xXvyIKW3BU=; b=b 4eudVQyGwCp+fY87W5313La05zBfi0h+6yVD/aC9waHfQfYaTMo2SnpIpsKg+OWwe0Ld62nDPRlcs sC4dhs+QnkZFEbl2Dc2njdiDuFCHurJ7BuDyBnA5CXpnwqDJhaNgLOsSlUZ5LoLhrDfcP/qiIsqzr sNZIlamZ8Jv+ulug=; Received: from mail-wr1-f46.google.com ([209.85.221.46]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1tl1Af-0005nY-Jn for openvpn-devel@lists.sourceforge.net; Thu, 20 Feb 2025 07:40:34 +0000 Received: by mail-wr1-f46.google.com with SMTP id ffacd0b85a97d-38f406e9f80so532098f8f.2 for <openvpn-devel@lists.sourceforge.net>; Wed, 19 Feb 2025 23:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvpn.net; s=google; t=1740037227; x=1740642027; 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=NBV+8G4wiFZQI5gaK1gBv0XYeuzRKSto6xXvyIKW3BU=; b=ZC43irVZCW6Dt5Ul3CtY3MrWPWlM8WAMzqJTDCSx1j1JjgDV+xdVBLIZNnwJy5QiTB OLEeAjCLre3vFcBIYaWsf3FepaQDyWcLpS/jWYJvhJIhm6XsovnwGCN2utwXqTyj2zIl dZx+/rm+pDD0jvrnVL/GP75ODRl1naLCXm16Vu90gh1cuJuvTbLZlX/LmdANvPneNUl5 eWtvG1ZVeRE8Sf6Fqj91IjBZqHFY4mi8obu2FUsnSKQPJLnvYJ1iNYT9rbTRu7k5P1pn Lkub9NHAAWDi6Abi2Gz8go2Ne146sIiOAbZ1K4vSnAmFWJFY+lhTRteW4qhJ0hAVSETK CJFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740037227; x=1740642027; 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=NBV+8G4wiFZQI5gaK1gBv0XYeuzRKSto6xXvyIKW3BU=; b=aCVACdzrOhlgfz7f5KvYZAoXRF5E+G6NB8mIF2FFIRReVSFJq6XcLrm/160xqHUgvm CloF46TfXbzfpI6VK5lISZifdm+yINQeclps8GG18mYZW8lrXqn7b0kmdOQ/zkMt8hoN dnUplwjiwZZt53cyppwJ9/QRCOseL+x/1IXCj253+ZYI4Cu3c7Hae9bC7dhPSIRtM+YJ eTJqB6nZBP964lvt4KtodgqOaCzNghydS+ADlrlau2YiJcxYlSfvoyU44MZPGdog1RaK WZqE+1yZAKenxYc1OXnKouu3ZccbiLBPgmyPC5aJhUe6SS4Oy5FQJWhkDUGLskHp8x1h otvw== X-Gm-Message-State: AOJu0Yz6KGjrS9MRKTn1uAwYqGjLAyX9O2EeUY8GMfGZVxU/ZF7PlzA8 zS2ZoC07zJyNV8fmTarXEmUGIwdHh77mX8nbNUwH57JfbCCVdqv2vnkH7VycATDHObfU5kFIqTI f X-Gm-Gg: ASbGncvBZrpMjJJePOwaBvsHPoux+PIhPNL+cDHvj7wC6zy7JcRGDRi7VeScQEx5EXH 6WcyyiJh+E1eKegM2I4cPUMn6lKhUsM7Tbk2ZS9hyxDFAb2Ggz9fMtGP8ke0HAH+/x1Z9LYnia4 qIXxV7IuNmI+jEtIKF2PcOB4BcRMCebAVmjHBg1ityqVcPm28Aro0E/bxPe35IiUPc7EHsf7Dk0 pPrdnCDzJSOJwVGDFA8FOAoxdmSCMdonrKyafkRYSBOpTcfbtbYmpOBjar+o5U7opqv38ySsyha bzjrpfxomOzs/HRd67/CqwHW3N8C6btc+ZuEe+tkiXDkGoaIfY6CBB/bs+HiNhkyf3uV19IB5NW uWy4NPxg= X-Received: by 2002:adf:e611:0:b0:38f:2413:2622 with SMTP id ffacd0b85a97d-38f587f11c3mr4137444f8f.47.1740037227029; Wed, 19 Feb 2025 23:40:27 -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 5b1f17b1804b1-4395a1aa779sm232579315e9.30.2025.02.19.23.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2025 23:40:26 -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: Thu, 20 Feb 2025 07:40:26 +0000 To: plaisthos <arne-openvpn@rfc2549.org>, flichtenheld <frank@lichtenheld.com> Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange X-Gerrit-Change-Id: Ie57f7b11157ab5ca8ff01e1c4f03a308117ff937 X-Gerrit-Change-Number: 900 X-Gerrit-Project: openvpn X-Gerrit-ChangeURL: <http://gerrit.openvpn.net/c/openvpn/+/900?usp=email> X-Gerrit-Commit: 69d56091f9de077122265afb3f5e2ffa4890bce1 References: <gerrit.1740037224000.Ie57f7b11157ab5ca8ff01e1c4f03a308117ff937@gerrit.openvpn.net> Message-ID: <6e4ca50667afb356e895dfe791f872ef67d9af99-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-2.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_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.46 listed in sa-trusted.bondedsender.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.221.46 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.46 listed in bl.score.senderscore.com] 0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.221.46 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an 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_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted Colors in HTML X-Headers-End: 1tl1Af-0005nY-Jn Subject: [Openvpn-devel] [XS] Change in openvpn[master]: dco-win: simplify control packets prepend code 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="===============2222920529474237045==" Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1824561288075727885?= X-GMAIL-MSGID: =?utf-8?q?1824561288075727885?= X-getmail-filter-classifier: gerrit message type newchange |
Series |
[Openvpn-devel,XS] Change in openvpn[master]: dco-win: simplify control packets prepend code
|
expand
|
diff --git a/src/openvpn/socket.h b/src/openvpn/socket.h index c370f2c..ee04a96 100644 --- a/src/openvpn/socket.h +++ b/src/openvpn/socket.h @@ -1125,15 +1125,11 @@ { if (to->dest.addr.sa.sa_family == AF_INET) { - struct sockaddr_in sa; - memcpy(&sa, &to->dest.addr.in4, sizeof(sa)); - buf_write_prepend(buf, &sa, sizeof(sa)); + buf_write_prepend(buf, &to->dest.addr.in4, sizeof(struct sockaddr_in)); } else { - struct sockaddr_in6 sa; - memcpy(&sa, &to->dest.addr.in6, sizeof(sa)); - buf_write_prepend(buf, &sa, sizeof(sa)); + buf_write_prepend(buf, &to->dest.addr.in6, sizeof(struct sockaddr_in6)); } }
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/+/900?usp=email to review the following change. Change subject: dco-win: simplify control packets prepend code ...................................................................... dco-win: simplify control packets prepend code Eliminate unneeded temporary struct sockaddr_in buffer. Change-Id: Ie57f7b11157ab5ca8ff01e1c4f03a308117ff937 Signed-off-by: Lev Stipakov <lev@openvpn.net> --- M src/openvpn/socket.h 1 file changed, 2 insertions(+), 6 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/00/900/1