From: "mrbff (Code Review)" Date: Tue, 4 Nov 2025 08:44:15 +0000 In-Reply-To: References: Reply-To: marco@...2726..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: <6e4e5d63243b0de7dc4bb32b8e7ae5b7381fcbb4-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="XUnAkv5TVpc="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: PUSH_UPDATE server: update reporting_addr after ifconfig update List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --XUnAkv5TVpc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, mrbff, plaisthos. Hello cron2, flichtenheld, plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1340?usp=3Demail to look at the new patch set (#2). The following approvals got outdated and were removed: Code-Review+2 by cron2 The change is no longer submittable: Code-Review and checks~ChecksSubmitRul= e are unsatisfied now. Change subject: PUSH_UPDATE server: update reporting_addr after ifconfig up= date ...................................................................... PUSH_UPDATE server: update reporting_addr after ifconfig update Update mi->reporting_addr(_ipv6) for status reporting purposes after sending a PUSH_UPDATE containing an ifconfig(-ipv6) option. Github: fixes OpenVPN/openvpn#889 Change-Id: Ie15977b44091445b9d1edebe885d92ec5cb5770a Signed-off-by: Marco Baffo --- M src/openvpn/multi.c 1 file changed, 6 insertions(+), 0 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/40/1340/2 diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c index 261209d..2b944667 100644 --- a/src/openvpn/multi.c +++ b/src/openvpn/multi.c @@ -4346,6 +4346,7 @@ multi_unlearn_in_addr_t(m, mi, old_addr); mi->context.c2.push_ifconfig_defined =3D false; mi->context.c2.push_ifconfig_local =3D 0; + mi->reporting_addr =3D 0; } /* Function to unlearn previous ifconfig-ipv6 of a client in the server mu= lti_context after a PUSH_UPDATE */ @@ -4358,6 +4359,7 @@ multi_unlearn_in6_addr(m, mi, old_addr6); mi->context.c2.push_ifconfig_ipv6_defined =3D false; CLEAR(mi->context.c2.push_ifconfig_ipv6_local); + CLEAR(mi->reporting_addr_ipv6); } /** @@ -4389,6 +4391,8 @@ { mi->context.c2.push_ifconfig_defined =3D true; mi->context.c2.push_ifconfig_local =3D ntohl(new_addr.s_addr); + /* set our client's VPN endpoint for status reporting purposes= */ + mi->reporting_addr =3D mi->context.c2.push_ifconfig_local; } } @@ -4408,6 +4412,8 @@ { mi->context.c2.push_ifconfig_ipv6_defined =3D true; mi->context.c2.push_ifconfig_ipv6_local =3D new_addr6; + /* set our client's VPN endpoint for status reporting purposes= */ + mi->reporting_addr_ipv6 =3D mi->context.c2.push_ifconfig_ipv6_= local; } } } -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1340?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: newpatchset Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ie15977b44091445b9d1edebe885d92ec5cb5770a Gerrit-Change-Number: 1340 Gerrit-PatchSet: 2 Gerrit-Owner: mrbff Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Attention: mrbff --XUnAkv5TVpc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: cron2, flichtenheld, mrbff, plaisthos.

mrbff uploaded patch set #2 to this change.

View Change

The following approvals got outdated and were removed: Code-Review+2 by cron2

The change is no longer submittable: Code-Revi= ew and checks~ChecksSubmitRule are unsatisfied now.

PUSH_U=
PDATE server: update reporting_addr after ifconfig update

Update mi-= >reporting_addr(_ipv6) for status reporting purposes
after sending a = PUSH_UPDATE containing an ifconfig(-ipv6) option.

Github: fixes Open= VPN/openvpn#889

Change-Id: Ie15977b44091445b9d1edebe885d92ec5cb5770a=
Signed-off-by: Marco Baffo <marco@...2726...>
---
M src/ope= nvpn/multi.c
1 file changed, 6 insertions(+), 0 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/change=
s/40/1340/2
diff --git a/src/openvpn/multi.c b/src/openvpn/multi.c<=
/span>
index 261209d..2b944667 100644
--- a/src/op= envpn/multi.c
+++ b/src/openvpn/multi.c
@@ = -4346,6 +4346,7 @@
multi_unlearn_in_addr_t(m, mi, old_= addr);
mi->context.c2.push_ifconfig_defined =3D fal= se;
mi->context.c2.push_ifconfig_local =3D 0;
+ mi->reporting_addr= =3D 0;
}

/* Function t= o unlearn previous ifconfig-ipv6 of a client in the server multi_context af= ter a PUSH_UPDATE */
@@ -4358,6 +4359,7 @@
= multi_unlearn_in6_addr(m, mi, old_addr6);
mi->= context.c2.push_ifconfig_ipv6_defined =3D false;
CLEAR= (mi->context.c2.push_ifconfig_ipv6_local);
+ CLEAR(mi->reporting_addr_ipv6);
= }

/**
@@ -4389,6 = +4391,8 @@
{
mi->c= ontext.c2.push_ifconfig_defined =3D true;
mi-&= gt;context.c2.push_ifconfig_local =3D ntohl(new_addr.s_addr);
+ /* set our client'= ;s VPN endpoint for status reporting purposes */

+ mi->reporting_addr =3D mi->c= ontext.c2.push_ifconfig_local;
}
= }

@@ -4408,6 +4412,8 @@
{

mi->context.c2.push_ifconfig_= ipv6_defined =3D true;
mi->context.c2.push_= ifconfig_ipv6_local =3D new_addr6;
+ /* set our client's VPN endpoint for status = reporting purposes */
+ mi->reporting_addr_ipv6 =3D mi->context.c2.push_ifconfi= g_ipv6_local;
}
}
<= span> }

To view, visit change 1340. To unsu= bscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ie15977b44091445b9d1edebe885= d92ec5cb5770a
Gerrit-Change-Number: 1340
Gerrit-PatchSet: 2
Gerrit-Owner: mrbff <marco@...2726...> <= /div>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: mrbff <marco@...2726...&g= t;
= --XUnAkv5TVpc=--