From: "mrbff (Code Review)"
Date: Mon, 13 Oct 2025 08:59:48 +0000
In-Reply-To:
References:
Reply-To: marco@...2726..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
gert@...1296...
Message-ID:
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="kk0K+5ZH97k="; charset=UTF-8
Subject: [Openvpn-devel] [M] 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: ,
Cc: plaisthos , flichtenheld , openvpn-devel
--kk0K+5ZH97k=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, plaisthos.
mrbff 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 4:
(6 comments)
File src/openvpn/multi.c:
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/669873c8_f711dc79?usp=3D=
email :
PS3, Line 4296: msg(D_MULTI_LOW, "MULTI: Remove: %s -> %s", mroute_addr=
_print(&r->addr, &gc), multi_instance_string(mi, false, &gc));
> this is too much logging ;-) [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/94ace8fa_436f6223?usp=3D=
email :
PS3, Line 4301:
> we might have a memleak here. I looked at the code in "multi. [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/cf4e61f7_f768ee6d?usp=3D=
email :
PS3, Line 4320: ASSERT(mroute_extract_openvpn_sockaddr(&addr, &remote_s=
i, false));
> This works, but feels more clumsy than needed - looking through mroute.c,=
I find [=E2=80=A6]
mroute_get_in_addr_t() and mroute_get_in6_add6() are a static inline (and i=
suppose there is a reason for that, but even if not, why bother), anyway i=
got your point and i tried to make the helper less clumsy and more symmetr=
ic.
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/cec62582_b1eddb2e?usp=3D=
email :
PS3, Line 4339:
> `mroute_get_in6_addr(&addr, a6, 0)` does this for you
Acknowledged
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/5bac7178_9e782090?usp=3D=
email :
PS3, Line 4366: old_addr.s_addr =3D ntohl(mi->context.c2.push_i=
fconfig_local);
> we could just do `in_addr_t old_addr =3D ... [=E2=80=A6]
Done
File src/openvpn/push_util.c:
http://gerrit.openvpn.net/c/openvpn/+/1253/comment/79224a68_ad59ff25?usp=3D=
email :
PS3, Line 158: memset(&o, 0, sizeof(struct options));
> please use `CLEAR(o);` for that. [=E2=80=A6]
Done
--
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: 4
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-Comment-Date: Mon, 13 Oct 2025 08:59:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2
--kk0K+5ZH97k=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is cur=
rently required from: cron2, flichtenheld, plaisthos.
View =
Change
6 comments:
Done
Patch Set #3, Line 4301:
we might have a memlea=
k here. I looked at the code in "multi. [=E2=80=A6]
<=
p class=3D"blocks" style=3D"white-space: pre-wrap; word-wrap: break-word;">=
DonePatch Set #3, Line 4320: ASSERT(mroute_extract_openvpn_sock=
addr(&addr, &remote_si, false));
This works, =
but feels more clumsy than needed - looking through mroute.c, I find [=E2=
=80=A6]
mroute_get_in_addr_t() and mroute_get_in6_add6() a=
re a static inline (and i suppose there is a reason for that, but even if n=
ot, why bother), anyway i got your point and i tried to make the helper les=
s clumsy and more symmetric.
Patch Set #3, Li=
ne 4339:
=
`mroute_get_in6_addr(&addr, a6, 0)` does this for youAcknowledged
Patch Set #3, Line 4366=
: old_addr.=
s_addr =3D ntohl(mi->context.c2.push_ifconfig_local);
we could just do `in_addr_t old_addr =3D ... [=E2=80=A6]=
p>Done
File src/=
openvpn/push_util.c:
To view, visit change 1253. To unsubscribe, or for =
help writing mail filters, visit settings.
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I07a8ddd9026eef64b6f5abde987=
02a9801616a5f
Gerrit-Change-Number: 1253
Gerrit-PatchSet: 4
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-Comment-Date: Mon, 13 Oct 2025 08:59:48=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...=
>
=
--kk0K+5ZH97k=--