From: "cron2 (Code Review)" Date: Fri, 21 Nov 2025 21:03:37 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., gianmarco@...2726..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <148b738f0fdb8f0aedf7c03834044f9897edda8f-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="jvtxzL5d7vg="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: multi-socket: do not return tuntap flags on server-side List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: its_Giaan Cc: plaisthos , flichtenheld , openvpn-devel --jvtxzL5d7vg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, its_Giaan, plaisthos. cron2 has posted comments on this change by its_Giaan. ( http://gerrit.open= vpn.net/c/openvpn/+/1364?usp=3Demail ) Change subject: multi-socket: do not return tuntap flags on server-side ...................................................................... Patch Set 2: (1 comment) Patchset: PS2: IRC notes... ``` 18:10 <@cron2> okay 18:10 <@cron2> - drop the #ifdef MULTI_DEBUG_EVENT_LOOP (completely) 18:10 <@cron2> - add the comment :-) 18:10 <@cron2> - drop FILE_CLOSED, plus explain in the commit message 18:10 <@cron2> - drop the new msg() again, because, too excessive 18:11 <@cron2> and someone needs to explain get_io_flags_dowork_udp() to me 18:11 <@cron2> why is it called "udp" and the comment says "for TCP & UDP sockets"? 18:13 <@cron2> and why does it say "Wait for I/O events" when all it does (= does it?) is set up the flags for events we want to see? 18:14 < Giaan> probably a copy paste from it=C2=B4s ancestor (io_wait()) 18:15 <@cron2> should TUN_WRITE then also be removed from get_io_flags_udp(= )? 18:15 < Giaan> no 18:15 < Giaan> we need that for tun_set() 18:17 <@cron2> do I even dare to ask how tun_set() and get_io_flags_udp()=20 relate, and why get_io_flags_udp() would deal with TUN_WRITE while get_io_flags_dowork_udp() does not? 18:17 < Giaan> ah indeed 18:17 * cron2 has to leave, and fetch the kids from sports... so will be b= ack tomorrow and work on this... 18:17 < Giaan> it=C2=B4s related to the get_io_flags_dowork_udp() 18:18 <@cron2> (can we get rid of get_io_flags_dowork_udp()?) 18:18 <@cron2> just fold these two lines into the caller... this used to be much larger 18:18 < Giaan> yeah, and then all the udp sockets won=C2=B4t work :D 18:19 <@cron2> nah, keep the logic, but put it into get_io_flags_udp() inst= ead of having an extra function for just one extra function call= + 1 assignment :-) 18:19 <@cron2> anyway, will be back... 18:20 < Giaan> please dump all your concerns in gerrit so we won=C2=B4t for= get :-) ``` -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1364?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: I6a5110a0583b8b33496b06d9c27c1084df38e842 Gerrit-Change-Number: 1364 Gerrit-PatchSet: 2 Gerrit-Owner: its_Giaan Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: its_Giaan Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Fri, 21 Nov 2025 21:03:37 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No --jvtxzL5d7vg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

View = Change

1 comment:

    =
  • Patchset:

    • Patch Set #2:

      IRC notes...

      ```
      18:10 <@cron2> okay
      18:10 <@cron2> - d= rop the #ifdef MULTI_DEBUG_EVENT_LOOP (completely)
      18:10 <@cron2> = - add the comment :-)
      18:10 <@cron2> - drop FILE_CLOSED, plus expl= ain in the commit message
      18:10 <@cron2> - drop the new msg() agai= n, because, too excessive
      18:11 <@cron2> and someone needs to expl= ain get_io_flags_dowork_udp() to me
      18:11 <@cron2> why is it calle= d "udp" and the comment says "for TCP & UDP
      = sockets"?
      18:13 <@cron2> and why does it say "Wai= t for I/O events" when all it does (does
      it?) is se= t up the flags for events we want to see?
      18:14 < Giaan> probably = a copy paste from it=C2=B4s ancestor (io_wait())
      18:15 <@cron2> sh= ould TUN_WRITE then also be removed from get_io_flags_udp()?
      18:15 < = Giaan> no
      18:15 < Giaan> we need that for tun_set()
      18:17 &l= t;@cron2> do I even dare to ask how tun_set() and get_io_flags_udp() relate, and why get_io_flags_udp() would deal with TUN_WRIT= E
      while get_io_flags_dowork_udp() does not?
      18:17 <= ; Giaan> ah indeed
      18:17 * cron2 has to leave, and fetch the kids f= rom sports... so will be back
      tomorrow and work on this...18:17 < Giaan> it=C2=B4s related to the get_io_flags_dowork_udp()18:18 <@cron2> (can we get rid of get_io_flags_dowork_udp()?)
      18:= 18 <@cron2> just fold these two lines into the caller... this used to= be
      much larger
      18:18 < Giaan> yeah, and then a= ll the udp sockets won=C2=B4t work :D
      18:19 <@cron2> nah, keep the= logic, but put it into get_io_flags_udp() instead
      of ha= ving an extra function for just one extra function call + 1
      = assignment :-)
      18:19 <@cron2> anyway, will be back...
      18:20= < Giaan> please dump all your concerns in gerrit so we won=C2=B4t fo= rget :-)
      ```

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

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I6a5110a0583b8b33496b06d9c27= c1084df38e842
Gerrit-Change-Number: 1364
Gerrit-PatchSet: 2
Gerrit-Owner: its_Giaan <gianmarco@...2786...= ..>
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: its_Giaan <gianmarco@...1665...= 726...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Fri, 21 Nov 2025 21:03:37= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
= --jvtxzL5d7vg=--