From: "cron2 (Code Review)" Date: Tue, 9 Dec 2025 10:49:28 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <87e7cebc24e9dfe525396ac9bb7e58d0bdb9f873-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="IBS6s9/wuT0="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: tun: Refactor BSD write_tun/read_tun List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --IBS6s9/wuT0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change by flichtenheld. ( http://gerrit.o= penvpn.net/c/openvpn/+/1378?usp=3Demail ) Change subject: tun: Refactor BSD write_tun/read_tun ...................................................................... Patch Set 5: Code-Review-1 Copied votes on follow-up patch sets have been updated: * Code-Review-1 has been copied to patch set 6 (copy condition: "changekind= :NO_CHANGE OR changekind:TRIVIAL_REBASE OR is:MIN"). (3 comments) Patchset: PS5: I think this is a good change and BB confirms that it works (or worked, a f= ew weeks ago). I think the comments could be improved a bit more... File src/openvpn/tun.c: http://gerrit.openvpn.net/c/openvpn/+/1378/comment/9197213b_fa155467?usp=3D= email : PS5, Line 1705: * go away for TAP devices. I think this should be reworded ("we *have* tested") to be something like ``` * For TAP devices, no extra header is needed, so we need to check for DEV_= TYPE_TUN ``` or so? Or maybe even shorter "For TAP devices, this is not needed and must= not be done" or so (so it's clear "even if we wanted to keep the code the = same, we can't"). http://gerrit.openvpn.net/c/openvpn/+/1378/comment/0f65128b_1360ae44?usp=3D= email : PS5, Line 1785: #if !defined(TARGET_DARWIN) I think this also warrants a comment ``` /* MacOS is slightly different again (extra variant for UTUN) so this platf= orm * has its own read_tun()/write_tun() with the necessary conditionals below */ ``` (it took me a while to remember and find the specifics, someone else will b= e even more confused) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1378?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: Ifd9384287648d1f37a625d9ed6a09733208fa56c Gerrit-Change-Number: 1378 Gerrit-PatchSet: 5 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 09 Dec 2025 10:49:28 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --IBS6s9/wuT0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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

Patch set 5:Code-Review -1=

V= iew Change

3 comments:

  • Patchset:

    • Patch Set #5:

      I think th= is is a good change and BB confirms that it works (or worked, a few weeks a= go). I think the comments could be improved a bit more...

  • File src/openvpn/tun.c:

    • Patch Set #5, L= ine 1705: * go away fo= r TAP devices.

      I think this should be reworded ("we *have* = tested") to be something like

      ```
      * For TAP devic= es, no extra header is needed, so we need to check for DEV_TYPE_TUN
      ```<= /pre>

      or so? Or maybe even shorter "For TAP devices, this is not need= ed and must not be done" or so (so it's clear "even if we wan= ted to keep the code the same, we can't").

    • Patch Set #5, Line 1785: #if !defined(TARGET_DARWIN)

      I think this also warrants = a comment

      ```
      /* MacOS is slightly different again (ext= ra variant for UTUN) so this platform
      * has its own read_tun()/write_tu= n() with the necessary conditionals below
      */
      ```

      (it took me a= while to remember and find the specifics, someone else will be even more c= onfused)

To view, visit change 1378. To unsubscribe, = or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ifd9384287648d1f37a625d9ed6a= 09733208fa56c
Gerrit-Change-Number: 1378
Gerrit-PatchSet: 5
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 09 Dec 2025 10:49:28= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --IBS6s9/wuT0=--