From: "cron2 (Code Review)"
Date: Fri, 17 Oct 2025 20:18:52 +0000
In-Reply-To:
References:
Reply-To: gert@...1296..., arne-openvpn@...1227..., marco@...2726...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
antonio@...2726...
Message-ID: <9c466a368e429b680354b18030040ce142048d5b-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="3GFO35WFqFc="; charset=UTF-8
Subject: [Openvpn-devel] [L] Change in openvpn[master]: PUSH_UPDATE server:
remove old IP(s) from vhash after sending a messa...
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: mrbff
Cc: plaisthos , flichtenheld , openvpn-devel
--3GFO35WFqFc=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, mrbff, ordex, plaisthos.
cron2 has posted comments on this change by mrbff. ( http://gerrit.openvpn.=
net/c/openvpn/+/1253?usp=3Demail )
Change subject: PUSH_UPDATE server: remove old IP(s) from vhash after sendi=
ng a message containing ifconfig(-ipv6)
......................................................................
Patch Set 7: Code-Review+2
(3 comments)
Patchset:
PS7:
This looks good now. Tested a sequence of "change ifconfig, change ifconfi=
g, change to -ifconfig, send new ifconfig" and it always learned/unlearned =
the expected things
```
Oct 17 22:11:37 gentoo tun-udp-p2mp[13761]: MULTI: Learn: 10.204.2.46 -> fr=
eebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:11:37 gentoo tun-udp-p2mp[13761]: MULTI: primary virtual IP for f=
reebsd-14-amd64/udp6:194.97.140.5:60204: 10.204.2.46
Oct 17 22:11:37 gentoo tun-udp-p2mp[13761]: MULTI: Learn: fd00:abcd:204:2::=
100a -> freebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:11:37 gentoo tun-udp-p2mp[13761]: MULTI: primary virtual IPv6 for=
freebsd-14-amd64/udp6:194.97.140.5:60204: fd00:abcd:204:2::100a
Oct 17 22:13:15 gentoo tun-udp-p2mp[13761]: MULTI: Unlearn: 10.204.2.46 -> =
freebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:13:15 gentoo tun-udp-p2mp[13761]: MULTI: Learn: 10.204.2.99 -> fr=
eebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:13:38 gentoo tun-udp-p2mp[13761]: MULTI: Unlearn: 10.204.2.99 -> =
freebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:13:38 gentoo tun-udp-p2mp[13761]: MULTI: Learn: 10.204.2.146 -> f=
reebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:14:40 gentoo tun-udp-p2mp[13761]: MULTI: Unlearn: 10.204.2.146 ->=
freebsd-14-amd64/udp6:194.97.140.5:60204
Oct 17 22:14:57 gentoo tun-udp-p2mp[13761]: MULTI: Learn: 10.204.2.99 -> fr=
eebsd-14-amd64/udp6:194.97.140.5:60204
```
also the logging is symmetric now (thanks again). Very nice.
I also tested IPv6, though it mains me to send "PUSH_UPDATE,-ifconfig-ipv6"=
- but it still works :-)
File src/openvpn/push_util.c:
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/831de5dd_a3d9baac?usp=3D=
email :
PS6, Line 165: o.ifconfig_local =3D canary;
> the canary is mostly to be less invasive as possible. [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/baeb5012_d8c04c16?usp=3D=
email :
PS6, Line 166: o.ifconfig_ipv6_local =3D canary;
> same for this obviously.
While I agree that this is not pretty, I would still leave it at that (and =
mrbff admitted that "it is ugly"). I do like the rest of the code a lot in=
this latest iteration, and want to move it forward so it's in beta4... so=
I'm willing to accept this part of limited beauty. We can improve it late=
r - right now it's "not working" which is definitely less useful ;-)
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1253?usp=3Demail
To unsubscribe, or for help writing mail filters, visit http://gerrit.openv=
pn.net/settings?usp=3Demail
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I07a8ddd9026eef64b6f5abde98702a9801616a5f
Gerrit-Change-Number: 1253
Gerrit-PatchSet: 7
Gerrit-Owner: mrbff
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-CC: ordex
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Attention: ordex
Gerrit-Attention: mrbff
Gerrit-Comment-Date: Fri, 17 Oct 2025 20:18:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: ordex
Comment-In-Reply-To: mrbff
--3GFO35WFqFc=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: flichtenheld, mrbff, ordex, plaisthos.
Patch set 7:Code-Review +2=
V=
iew Change
3 comments:
the canary is mostly to be less invasive as =
possible. [=E2=80=A6]
Done
P=
atch Set #6, Line 166: =
o.ifconfig_ipv6_local =3D canary;
same for this o=
bviously.
While I agree that this is not pretty, I would s=
till leave it at that (and mrbff admitted that "it is ugly"). I =
do like the rest of the code a lot in this latest iteration, and want to mo=
ve it forward so it's in beta4... so I'm willing to accept this pa=
rt of limited beauty. We can improve it later - right now it's "n=
ot working" which is definitely less useful ;-)
To view, visit change 1253. To unsubscribe, or for help writing mail filter=
s, visit setting=
s.
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I07a8ddd9026eef64b6f5abde987=
02a9801616a5f
Gerrit-Change-Number: 1253
Gerrit-PatchSet: 7
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-CC: ordex <antonio@...2726...> =
div>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Attention: ordex <antonio@...2726...=
>
Gerrit-Attention: mrbff <marco@...2726...&g=
t;
Gerrit-Comment-Date: Fri, 17 Oct 2025 20:18:52=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: ordex <antonio@...2787...=
...>
Comment-In-Reply-To: mrbff <marco@...2804...=
.>
=
--3GFO35WFqFc=--