Message ID | f8d8a7b91c509f42f3bb207c40c0d54808edaae4-HTML@gerrit.openvpn.net |
---|---|
State | New |
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 d11csp10717152mav; Sat, 4 Jan 2025 14:52:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUle9qwU5GtBQ3KV1/KfQT9mHOWbYuH4zMjMDjOfN0VXiPgx+RRFWYq7N7wvbPLogJi1gNn5Hr6Vxs=@openvpn.net X-Google-Smtp-Source: AGHT+IF63fl9VYiLgb8mIiWs39w7A7jKMJz8mPDK+0GMyhkxTEvpIZNtIMY6yjIy217GaCUOg5is X-Received: by 2002:a05:6808:1807:b0:3ea:5a0e:941c with SMTP id 5614622812f47-3ed88f3e5damr29008292b6e.10.1736031149560; Sat, 04 Jan 2025 14:52:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736031149; cv=none; d=google.com; s=arc-20240605; b=XPLzlYUmSsRGu8VweqeA0DhisvnAPm3M4IKrdktcFMWwaEbfxx6kwg6lHPlUWWBBF5 zBNx15Emvs7M4iG4aJdrDr964o2ew+1Gdw4tQxfZSzH8EnVAoxH3PGbdpEVEgXmWkR1b 2r3b8hGWWnpu1ZnXLhLlLLgW+kJg+EXmYdgte3vIQx/pBhANdWeQs8HzlE5ZRx6LOJHs z1XgmbnKYUPvubTkY6kozZlsbZay0jrfcAbflbQmzrEvwWPK32GgJnePo32dE+rU8jxs W/F9ooEWs8ptAoii3lJ46LdoNv02tAfGsOCr9SA1JxHXOb3ewrEKJXZ5CfhBFW3AijPu fDbg== 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=kfWRRx2/isOOK/RCmE39C5Cu4gqZf+vTwtGYN437UvU=; fh=lm0MLPW7DntlrDqRECIiC9JlE1uPxhepE0URYHIf+eE=; b=VUS221/ipS9Djcz/RVmfhUhiZgSZKw7qDi4oQldZyh6CmAOumaixDeS6cmhP30YH8K 5SsMTzuFw4th/Olw6jZFyndw4hDAdIC9G4S/yz6TsuA0vnx6s/Yqfw6qZywC8Lslr9x3 DrtgbfV8COQvNkJ5H8WmRQfQCRb8WM3e83xZK1XSrBadqiK0WuGexpLFtbH5Z6+xDvfP L6rAyiCa47a6LHwhwK0Op+3270c900NNLCmOqr0xIYn51bs+YjRGo8+pj0f5kdEHO2oV 6eLNne3qmnqXLM04KTAEGPGGAYNm4mX/HxVclZX0JnkMhpiU171rO6Vq8LCqunr9zkeT 20Xg==; 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=VrvRARUz; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=QoTZVkkN; dkim=neutral (body hash did not verify) header.i=@openvpn.net header.s=google header.b=cKjdC4qq; 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 5614622812f47-3ece26aa19csi20073278b6e.268.2025.01.04.14.52.29 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Jan 2025 14:52:29 -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=VrvRARUz; dkim=neutral (body hash did not verify) header.i=@sf.net header.s=x header.b=QoTZVkkN; dkim=neutral (body hash did not verify) header.i=@openvpn.net header.s=google header.b=cKjdC4qq; 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 1tUD0M-0006uB-Nz; Sat, 04 Jan 2025 22:52:26 +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 1tUD0K-0006u3-8T for openvpn-devel@lists.sourceforge.net; Sat, 04 Jan 2025 22:52:24 +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=UBB243dOVdy7kAtffelDlm2h7BPN50a0DOPJ15YoCFA=; b=VrvRARUzrmz1IloEWe5ssbPugo QxD+i62EXc9DkQOFabaqr8tUB14iDgU38dQJttutijJluPEGPrJ24eBubkFbRkxH5BVfdzqftk12b qBoVW7KMno06pE4wANNNpfH6iRDAIA9ndZhQzbdzQOVowzf513Wf+6rAPKK7v9fZZuus=; 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=UBB243dOVdy7kAtffelDlm2h7BPN50a0DOPJ15YoCFA=; b=Q oTZVkkNLhDNKU7/jlUQ4VuvNB55QrNynJGHRIjHZBJdMnW3Z9rMt7YOEjGB0eucTfvXD9bh8Lbq49 JaVdyV4FTPRo1RZWXITgMHTha6gSCmBVIDguoikJvho0G3Lvx4h2UpnbdLuZUSCLSDK2ijTxexBur 1TlXU5BGkLPqKgwc=; Received: from mail-wm1-f50.google.com ([209.85.128.50]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1tUD0I-0002wp-DK for openvpn-devel@lists.sourceforge.net; Sat, 04 Jan 2025 22:52:24 +0000 Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4361c705434so95937065e9.3 for <openvpn-devel@lists.sourceforge.net>; Sat, 04 Jan 2025 14:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvpn.net; s=google; t=1736031131; x=1736635931; 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=UBB243dOVdy7kAtffelDlm2h7BPN50a0DOPJ15YoCFA=; b=cKjdC4qquiNTB0b0c65otU5kmZdCgbloCM5Yq96rTiq4KLT8sHLfq5PFNqH/AytNY5 IbaR0b8plWwY5R2m6NDmXPBjk4f9SJqlC5AO9JLapVYR7k87uTlGLZoh2aa/5fLEX+zf cSq6xQUaMdS+s8w87RfZJrlQwR3qAGqRsMN2n9jtz5gKVSex3jbhqVKMQiL5lTd1PAE7 oR0PheppLw/R8dBllOayg3/AgIV+u6ggUEsTSoasac3ALbNr54PsrUFPlpu5TBUfM62P qv3JlYY4OeaOSWrArj19FdiTjzJYPgaBoQ8fKiCSjKGzCQYk6OwWwrwHWqib7icoWNpq 7PSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736031131; x=1736635931; 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=UBB243dOVdy7kAtffelDlm2h7BPN50a0DOPJ15YoCFA=; b=xAyBkFIsPn6YPoTiDGZIajs9XN1+0YUixRWcA5avZcHLYhehnDTE3aqqnPsG4E41nA uCfYCfzI1/seFG4ZvfRVO3KaSmRLM37KcEoLO4eXeeJzkyYPwD4LHC6TQAK5YAvdnKLf RZ/1ZwrmqYzqNo8iCPpc0zOmyR3B3hK2cIqSA58NbeNcSaa+CM+eDQkCHzJruN8+MQ83 4mwmV/VrGEAbY8t/jtIFTLkDBSWlX4GGquKFuxfBhD2Phw+8A3fVNHi132NVS2Bdg+tm +fBrhWR+hCARk897irDehgAhWmYpYEV8yHL+NP1RHXfki3D73T0/BDQCmvLyw43o1KAr MlyQ== X-Gm-Message-State: AOJu0YxGvsiyiqA6Afi4d1/T4z4pFh3jo4p5vn0kNu8Ys26pXPsHRJy4 RLCHQfIG/ziYdVxCwhambnr/Dan8wFS+fKY9oXC3x7FmIRyFKQ5twq7zpkpCCIpnmkkI5SpIdSd u X-Gm-Gg: ASbGncsc8MGBYIVCApRVOrfg9wU3f2NCOsgnquh6NcVbgN1bh14+qn5zNgA5zwnK1t5 Rh/cE+9iQZBVL/XVBQOppQOIkZmz0wNlE/ayVa+4+13uv0vC1eAzFiCYvTGKYEoHrFB1X4xlnKN S43wsjFD+ZqEHwa2awpitYbFOQaSQatVE0KT2rxROeqrt2oNhI7rMT6Ty3ZPu/NBngVf6F6eogh qEzuAJAz6lcSjyedMsOG3WQsRV+KzcUq+er571JsDZr4RSrmoSlIS/wE9dHxVdQwe7Kyx4lGE7k d/Wjz1yRj8EUAZIYJMmjcWAdaDURkOuj7og1G20igqARZc3t X-Received: by 2002:a05:600c:4448:b0:434:fbda:1f36 with SMTP id 5b1f17b1804b1-43668b5e111mr394968125e9.20.1736031130667; Sat, 04 Jan 2025 14:52:10 -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-43656b3b287sm555062345e9.29.2025.01.04.14.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2025 14:52:09 -0800 (PST) From: "plaisthos (Code Review)" <gerrit@openvpn.net> X-Google-Original-From: "plaisthos (Code Review)" <gerrit@gerrit.openvpn.in> X-Gerrit-PatchSet: 1 Date: Sat, 4 Jan 2025 22:52:09 +0000 To: flichtenheld <frank@lichtenheld.com> Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange X-Gerrit-Change-Id: Ie60a0a427ca810e28ab9049a8599510423f79bc1 X-Gerrit-Change-Number: 849 X-Gerrit-Project: openvpn X-Gerrit-ChangeURL: <http://gerrit.openvpn.net/c/openvpn/+/849?usp=email> X-Gerrit-Commit: 4d0f2d060694c667a3407d6e03d1de00dbc90da9 References: <gerrit.1736031115000.Ie60a0a427ca810e28ab9049a8599510423f79bc1@gerrit.openvpn.net> Message-ID: <f8d8a7b91c509f42f3bb207c40c0d54808edaae4-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. Hello 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_CERTIFIED_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.128.50 listed in sa-accredit.habeas.com] 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.128.50 listed in bl.score.senderscore.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.50 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.50 listed in list.dnswl.org] 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_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.0 T_KAM_HTML_FONT_INVALID Test for Invalidly Named or Formatted Colors in HTML X-Headers-End: 1tUD0I-0002wp-DK Subject: [Openvpn-devel] [XS] Change in openvpn[master]: fixup! Add methods to read/write packet ids for epoch data 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: 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="===============5667909672677525019==" Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox X-GMAIL-THRID: =?utf-8?q?1820360598639213254?= X-GMAIL-MSGID: =?utf-8?q?1820360598639213254?= X-getmail-filter-classifier: gerrit message type newchange |
Series |
[Openvpn-devel,XS] Change in openvpn[master]: fixup! Add methods to read/write packet ids for epoch data
|
expand
|
diff --git a/tests/unit_tests/openvpn/test_packet_id.c b/tests/unit_tests/openvpn/test_packet_id.c index a24580b..312a6b3d 100644 --- a/tests/unit_tests/openvpn/test_packet_id.c +++ b/tests/unit_tests/openvpn/test_packet_id.c @@ -238,7 +238,8 @@ uint8_t expected_header_48[8] = { 0xff, 0xfe, 0xfa, 0x07, 0x9a, 0xb9, 0xd2, 0xe9}; assert_memory_equal(BPTR(&buf_48), expected_header_48, 8); - /* test writing/checking the 48 bit overflow */ + /* test writing/checking the 48 bit per epoch packet counter + * overflow */ data->pis.id = 0xfffffffffffe; struct buffer buf_of = alloc_buf_gc(128, &data->gc); assert_true(packet_id_write_epoch(&data->pis, 0xf00f, &buf_of));