Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 41013606A327 for ; Mon, 2 Nov 2026 11:35:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lists.sourceforge.net header.i=@lists.sourceforge.net header.a=rsa-sha256 header.s=beta header.b=Pjeqf9M6; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=sourceforge.net header.i=@sourceforge.net header.a=rsa-sha256 header.s=x header.b=gLHkQVf5; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=sf.net header.i=@sf.net header.a=rsa-sha256 header.s=x header.b=Y1K7Cddf; dkim=neutral header.d=openvpn.net header.i=@openvpn.net header.a=rsa-sha256 header.s=google header.b=dQqMRe+F DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Type:Cc:Reply-To:From: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:MIME-Version:Message-ID:References:To:Date:Sender: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: List-Unsubscribe-Post:List-Owner; bh=3YTMYoIVx8If5t3URvLJ6ObkxPxz67qbuUiDetolez4=; b=Pjeqf9M6s7uF+Prqbl73kgqYwU DaFy56aaTz2qi/icYO2Xs91Hv2H3Xj7drejFRA5feAsrMJWJSptuOaFEeNUCLGwPa05a9s55NSi89 oSO1N3rG5gylxGZRqsYZRXPb1UsDXeZI0m/PwXLjLyM7KB53D22VNvZOgjqMwetnnHsM=; Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.100.1) (envelope-from ) id 1xNqKO-000000007Oo-1GUd; Mon, 02 Nov 2026 11:35:52 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.100.1) (envelope-from ) id 1xNqKI-000000007Of-367x for openvpn-devel@lists.sourceforge.net; Mon, 02 Nov 2026 11:35:46 +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:Subject:References: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-Unsubscribe-Post:List-Subscribe:List-Post:List-Owner:List-Archive; bh=U3mjO+FIBakg1PxhnK1qKRxyP5RqQbxL/Svt2tqA670=; b=gLHkQVf57xJ0XyjxgRtEiNZItq l4/3/8WXqcssnIp30q4v2yUyPiBSReRPawSAyipzt+7zXi6sZylcUNdRD8g0sCEBoi5/N4DIrN9pE xnZuQ4GIEKss60MSnreycYxNPYHXwuE5LQeTyr+2IwY+yqKfBBkBYLn0Mcmm6Uo8aKJs=; 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: Subject:References: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-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=U3mjO+FIBakg1PxhnK1qKRxyP5RqQbxL/Svt2tqA670=; b=Y1K7CddfqPd2NPdMIa4HPQQkyy SWMo76kBeUw5Z+OAiXqD1b8AalsRaBpG2u4SjPmfMk0ke5OJ0H23an3JU8HoggE7zz4ffLOMWuO8X kRp+Y8wLBSFaBk1N5gtdUHWLqA2vH8F8hxvuZmJHFt2CuL8V/gD4XjeBbovhzv4BV0D0=; 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.100.1) id 1xNqKH-0000000059g-0ZRu for openvpn-devel@lists.sourceforge.net; Mon, 02 Nov 2026 11:35:46 +0000 Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-48e20ed3b9dso2589943f8f.2 for ; Mon, 02 Nov 2026 03:35:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openvpn.net; s=google; t=1793619338; x=1794224138; darn=lists.sourceforge.net; h=content-type:user-agent:content-disposition :content-transfer-encoding:mime-version:message-id:reply-to:subject :thread-index:references:list-unsubscribe:list-id:auto-submitted:cc :to:date:from:from:to:cc:subject:date:message-id:reply-to :content-type; bh=U3mjO+FIBakg1PxhnK1qKRxyP5RqQbxL/Svt2tqA670=; b=dQqMRe+F9yAQ+tWSRbzO3sIEqRSCIxBpZzoACNiW0EYnC1fNFxtXUxk+TXmek4sy20 4/TRD7Bu29CF9cEbcB9aB3Z+PHsDIZIyJTjlL6qOYj/2SS97ak8blnLck/5f/4VbKyq5 +qt2BkeZlbZLvnKnu3oBulMwTeME6QxKKfjpS4pIwrK2wP94/QKxOOb+h3jdfESTC/Ml IiQHo6RBH6dzbnY6g6hydxJ/IaK2wgp5Vp5pI7QAnVMV2NQh3VRfye79S9SPJsmJ46yZ QET5Bs816NgYp3+y+fetgK6/xj8YIw7rhGrdtyARio2smK3rGBzBqs4avrlXfp87CMeu 5eUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793619338; x=1794224138; h=content-type:user-agent:content-disposition :content-transfer-encoding:mime-version:message-id:reply-to:subject :thread-index:references:list-unsubscribe:list-id:auto-submitted:cc :to:date:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=U3mjO+FIBakg1PxhnK1qKRxyP5RqQbxL/Svt2tqA670=; b=LnL3cqprJ11iumgPvx/OnGCoyq8c1iW0J7wvLjzse9tD1zhQIiN/D033rWeHSBdcDW mrPDlBY0lZep9wXMoyfXPSN1dbb15AvD3SH1JLuqSlStjQgH078al6569UR9zfHmTxna 8fgFGb4WtA2eb/mHAfWdBwsJqtTDNrmYZprmwjv7dhbMbz86TubbjTEcMQB3Mzr09h35 oxqEBbv531NuUsXe3xBHoylwGKDlw2u4GOHvzwaoUb1mMwUsZO6vol1a+IJyqrs4M+4e tXEQEhp1LhLn5oRc4kMrnpicBShnMISRRT1K6nvwbeAzweHvYamwEhvr31RkNH0kx1IV gI4g== X-Gm-Message-State: APuU4Z/ZXvvtgKfC919TYjofT2hJpth9o+qocwlS6xGvAF9Mf01+fdkY y5YJ0eFt11qn8/DMFO8hZ4Mk6AEjvFOShCeLb0gBmzaW7YSpQzponapRkycvhS9sxCQArIWu1X8 dzNvyW1cnNYAqrfgSiLLF8lu457jxa3JQHNkyEs8KOattKCbZtNTS981pFImX119rCB0CUYM3+e fNGD6hNA== X-Gm-Gg: AYBFou24seUmApgFmMcxOHCaUIWuQQqGxsWxvSYyXTs4hpoX5mEqGAVFKV8u1Ant+j0 e870yfrpbMoc7azh00PhJjuuwvbUxJib1UcjNtfQHkt42KORsf8IblUoCAohwzn3oxYR0rC5V/C NVImo2dp6MOdx050oNHHx3NHeeCeO7TZC0LNE1OYb8lePkuNEzSnzhZHkKEJzoK3q2L0MSx5KbU bKOSBRY6eYj8AQ+fo61o9dsOBRvLxB3rfDppEHGWjIE15Fmim5qf1n35APSFgMFXaUFFl40pn1z ya8fCHtJOmr7BSwiKU0X2y0Hx8ZD6iSH+n3ocbw0pixaOgo+l7/yyiyhA2ZbcQOnzNkXeHJvGHu +JP38A0CqWKTrsGx7AezXvnt2Qm5Me1fubUZzufq3R1WFZ1/6WlpsZogmAMguH26kzX/jzpvcmx oMsIR9RF/AGguUaJCrpz3RLH1FJODRAtHzT3XXAyXc256jywVh+iLj73Vuz2T6NXQD6o0b7oWbZ DodYw5y5AVLCVOZ/azYOJ7ucenWlUK5A0bmJDWGHLqvU2EGIPbLa+xUrf9ctFX7R6jQ7lqpn808 qQPt05oTCHzbk0bZrGz7vNcK95cenUPmka7eww+rgZeT5yw1fqj14ig5bJBImZdhjUYj2t48DWB rAzrILPjPHgMuoPvuGztjMw7OFMWmzypvFh1NV3mBL/UV5UWRflnWif0hcfUOlTvbXnUk03wGEG Nffh6GpmdF7tBucHwIT1AuAFnrHWAY6gEmxUs= X-Received: by 2002:adf:e003:0:10b0:48e:4e26:146e with SMTP id ffacd0b85a97d-48e6e533fbdmr16616161f8f.55.1793619338425; Mon, 02 Nov 2026 03:35:38 -0800 (PST) Received: from ip-10-18-1-162.eu-central-1.compute.internal (ec2-18-159-0-78.eu-central-1.compute.amazonaws.com. [18.159.0.78]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48e71a4d5dfsm22819867f8f.3.2026.11.02.03.35.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2026 03:35:38 -0800 (PST) X-Google-Original-From: =?UTF-8?Q?R=C4=83zvan_Cojocaru_=28Code_Review=29?= Date: Mon, 2 Nov 2026 11:35:37 +0000 To: Arne Schwabe Auto-Submitted: auto-generated X-Gerrit-MessageType: newchange X-Gerrit-PatchSet: 1 X-Gerrit-Change-Id: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9 X-Gerrit-Change-Number: 2086 X-Gerrit-Project: openvpn X-Gerrit-ChangeURL: X-Gerrit-Commit: 564210a5f01fa902c5b3775d06fdfc22ff0e42b5 References: Thread-Index: PGdlcnJpdC4xNzkzNjE5MzM2MDAwLkk3M2NlYmNiNzY0OWU3YzJiZmRkMjlmZWU5NTViMTkyZjE0M2E1YWI5QGdlcnJpdC5vcGVudnBuLm5ldD4= Message-ID: X-Archived-By: MIME-Version: 1.0 User-Agent: Gerrit/3.14.2 X-Spam-Score: 0.8 (/) X-Headers-End: 1xNqKH-0000000059g-0ZRu Subject: [Openvpn-devel] [XS] Change in openvpn[master]: route: print net_gateway info instead of unset rgi/rgi6 X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , From: =?UTF-8?Q?R=C4=83zvan_Cojocaru_=28Code_Review=29?= via Openvpn-devel Reply-To: razvanc@mailbox.org, arne-openvpn@rfc2549.org, openvpn-devel@lists.sourceforge.net Cc: =?UTF-8?Q?R=C4=83zvan_Cojocaru_=28Code_Review=29?= , openvpn-devel Content-Type: multipart/mixed; boundary="===============8787101719957854223==" X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, PDS_BAD_THREAD_QP_64,SPF_HELO_PASS,SPF_PASS,T_KAM_HTML_FONT_INVALID, WEIRD_PORT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 --===============8787101719957854223== Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="x4vkz28ffOU="; charset=UTF-8 --x4vkz28ffOU= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Attention is currently required from: Arne Schwabe=2E Hello Arne Schwabe, = I'd like you to do a code review=2E Please visit https://gerrit=2Eope= nvpn=2Enet/c/openvpn/+/2086?usp=3Demail to review the following change=2E = Change subject: route: print net_gateway info instead of unset rgi/rgi6 = =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E= =2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E=2E route: print = net_gateway info instead of unset rgi/rgi6 init_route_list() and init_rout= e_ipv6_list() print rgi/rgi6 before they are filled, so ROUTE_GATEWAY/ROUTE= 6_GATEWAY were never logged=2E Print ngi/ngi6, which the surrounding block = checks and exports=2E Broken since 2777cdd3 ("route: handle default gatewa= y (net_gateway) and nexthop towards VPN server separately")=2E Change-Id: = I73cebcb7649e7c2bfdd29fee955b192f143a5ab9 Signed-off-by: Razvan Cojocaru --- M src/openvpn/route=2Ec 1 file changed, 2 inserti= ons(+), 2 deletions(-) git pull ssh://gerrit=2Eopenvpn=2Enet:29418/ope= nvpn refs/changes/86/2086/1 diff --git a/src/openvpn/route=2Ec b/src/openv= pn/route=2Ec index 0bce966=2E=2E7a475a6 100644 --- a/src/openvpn/route=2Ec = +++ b/src/openvpn/route=2Ec @@ -619,7 +619,7 @@ { setenv_rout= e_addr(es, "net_gateway", rl->ngi=2Egateway=2Eaddr, -1); #ifndef ENABLE_SM= ALL - print_default_gateway(D_ROUTE, &rl->rgi, NULL); + print= _default_gateway(D_ROUTE, &rl->ngi, NULL); #endif } else @@ -770= ,7 +770,7 @@ { setenv_str(es, "net_gateway_ipv6", print_in6_a= ddr(rl6->ngi6=2Egateway=2Eaddr_ipv6, 0, &gc)); #ifndef ENABLE_SMALL - = print_default_gateway(D_ROUTE, NULL, &rl6->rgi6); + print_default= _gateway(D_ROUTE, NULL, &rl6->ngi6); #endif } else -- To view,= visit https://gerrit=2Eopenvpn=2Enet/c/openvpn/+/2086?usp=3Demail To unsub= scribe, or for help writing mail filters, visit https://gerrit=2Eopenvpn=2E= net/settings?usp=3Demail Gerrit-MessageType: newchange Gerrit-Project: ope= nvpn Gerrit-Branch: master Gerrit-Change-Id: I73cebcb7649e7c2bfdd29fee955b1= 92f143a5ab9 Gerrit-Change-Number: 2086 Gerrit-PatchSet: 1 Gerrit-Owner: R= =C4=83zvan Cojocaru Gerrit-Reviewer: Arne Schwabe <= arne-openvpn@rfc2549=2Eorg> Gerrit-CC: openvpn-devel Gerrit-Attention: Arne Schwabe --x4vkz28ffOU= Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: Arne Schwabe=2E

R=C4=83zvan Cojocaru would li= ke Arne Schwabe to review this change=2E

View Change

route: print net_gateway info instead of unset rgi/rgi6=


init_route_list() and init_route_ipv6_list() print rgi/rgi6 before<= br>they are filled, so ROUTE_GATEWAY/ROUTE6_GATEWAY were never logged=2EPrint ngi/ngi6, which the surrounding block checks and exports=2E

B= roken since 2777cdd3 ("route: handle default gateway (net_gateway)
= and nexthop towards VPN server separately")=2E

Change-Id: I73ce= bcb7649e7c2bfdd29fee955b192f143a5ab9
Signed-off-by: Razvan Cojocaru <= razvanc@mailbox=2Eorg>
---
M src/openvpn/route=2Ec
1 file chang= ed, 2 insertions(+), 2 deletions(-)

git pull ssh=
://gerrit=2Eopenvpn=2Enet:29418/openvpn refs/changes/86/2086/1
diff=
 --git a/src/openvpn/route=2Ec b/src/openvpn/route=2Ec
inde= x 0bce966=2E=2E7a475a6 100644
--- a/src/openvpn/route=2Ec
+++ b/src/openvpn/route=2Ec
@@ -619,7 +619,7= @@
{
setenv_route_addr(es, &= quot;net_gateway", rl->ngi=2Egateway=2Eaddr, -1);
= #ifndef ENABLE_SMALL
- = print_default_gateway(D_ROUTE, &rl->rgi, NULL);
+ print_default_gateway(D_R= OUTE, &rl->ngi, NULL);

#endif
= }
else
@@ -770,7 +770,7 @@
<= span> {
setenv_str(es, "net_gateway_ipv6&= quot;, print_in6_addr(rl6->ngi6=2Egateway=2Eaddr_ipv6, 0, &gc));
#ifndef ENABLE_SMALL
- print_default_gateway(D_ROUTE, NULL, &rl6->rgi6= );
+ print_def= ault_gateway(D_ROUTE, NULL, &rl6->ngi6);
#endif
}
else

To view, v= isit change 2086=2E To unsubscribe, or for help writing mail filters, visi= t settings<= /a>=2E

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit= -Change-Id: I73cebcb7649e7c2bfdd29fee955b192f143a5ab9
Gerrit-Change-Number: 2086
Gerrit-PatchSet: 1
Gerrit-Owner: R= =C4=83zvan Cojocaru <razvanc@mailbox=2Eorg>
Gerrit-Reviewer: Arne Schwabe <arne-openvpn@rfc2549=2Eorg>=
Gerrit-CC: openvpn-devel <openvpn-d= evel@lists=2Esourceforge=2Enet>
Gerr= it-Attention: Arne Schwabe <arne-openvpn@rfc2549=2Eorg>
--x4vkz28ffOU=-- --===============8787101719957854223== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============8787101719957854223== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Openvpn-devel mailing list Openvpn-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-devel --===============8787101719957854223==--