From: "plaisthos (Code Review)" Date: Tue, 24 Sep 2024 08:21:53 +0000 In-Reply-To: References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641..., gert@...1296... Message-ID: <1d2c6c4bb2b556a37ccbd583be314c7509871b2f-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="EVEZ/YUwhtg="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: Introduce DRIVER_AFUNIX backend for use with lwipovpn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: cron2 , flichtenheld , openvpn-devel --EVEZ/YUwhtg= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld. plaisthos has posted comments on this change. ( http://gerrit.openvpn.net/c= /openvpn/+/747?usp=3Demail ) Change subject: Introduce DRIVER_AFUNIX backend for use with lwipovpn ...................................................................... Patch Set 10: (7 comments) File src/openvpn/dco.c: http://gerrit.openvpn.net/c/openvpn/+/747/comment/dc90dae1_5d368c9f : PS10, Line 306: return false; > blank missing, and I would not wrap a single word Done File src/openvpn/forward.c: http://gerrit.openvpn.net/c/openvpn/+/747/comment/786d9bf0_01d92300 : PS10, Line 1325: c->c2.buf.len =3D tun_afunix_read(c->c1.tuntap, BP= TR(&c->c2.buf), c->c2.frame.buf.payload_size); > the monk in me complains that `read_tun()` should be paired with `read_tu= n_afunix()`... [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/747/comment/4985ee6c_466dd8db : PS10, Line 1939: size =3D tun_afunix_write(c->c1.tuntap, BPTR(&= c->c2.to_tun), BLEN(&c->c2.to_tun)); > see above ;-) Done File src/openvpn/init.c: http://gerrit.openvpn.net/c/openvpn/+/747/comment/9d2a0551_4486932b : PS10, Line 2060: tun_afunix_close(c->c1.tuntap); > you are using `open_tun_afunix()` for `open_tun()`, so this really should= be `close_tun_afunix()` th [=E2=80=A6] Done File src/openvpn/run_command.h: http://gerrit.openvpn.net/c/openvpn/+/747/comment/128d3fd4_13147565 : PS10, Line 52: #define S_NOWAITPID (1<<3) > the indenting here looks like one is using tab, one is using spaces Done File src/openvpn/tun_afunix.c: http://gerrit.openvpn.net/c/openvpn/+/747/comment/56f93adc_cb7474df : PS10, Line 39: #if defined(AF_UNIX) && !defined(WIN32) > I do wonder if the conditional on `AF_UNIX` is really needed (here and el= sewhere). [=E2=80=A6] Done http://gerrit.openvpn.net/c/openvpn/+/747/comment/11503245_d6c4ddaf : PS10, Line 125: > should we `wait()`? Or are we handling SIGCHLD elsewhere? I am not sure that waiting is really needed. We could wait to ensure that t= he child really exits. We currently ignore SIGCHLD and that means that the = process will just die. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/747?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I65099ef00822d08fd3f5480c80892f3bf86c56e7 Gerrit-Change-Number: 747 Gerrit-PatchSet: 10 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Tue, 24 Sep 2024 08:21:53 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: cron2 Gerrit-MessageType: comment --EVEZ/YUwhtg= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld.

View C= hange

7 comments:

    =
  • File src/openvpn/dco.c:

    • Patch Set #10, Line 306: <= code style=3D"font-family:monospace,monospace"> return false;=

      blank missing, and I would not wrap a single word

      Done

      <= /li>
  • File src/openvpn/forw= ard.c:

    • Patch Set #1= 0, Line 1325: c= ->c2.buf.len =3D tun_afunix_read(c->c1.tuntap, BPTR(&c->c2.buf= ), c->c2.frame.buf.payload_size);

      the monk in me c= omplains that `read_tun()` should be paired with `read_tun_afunix()`... [= =E2=80=A6]

      Done

    • Patch Set #10, Line 1939: size =3D tun_afunix_write(= c->c1.tuntap, BPTR(&c->c2.to_tun), BLEN(&c->c2.to_tun));

      see above ;-)

      Done

  • File src/openvpn/init.c:

    • Patch Set #10, Line 2060: tun_afunix_close(c->c1.tunt= ap);

      you are using `open_tun_afunix()` for `open_tun(= )`, so this really should be `close_tun_afunix()` th [=E2=80=A6]

      Done

  • File src/openvpn/run_c= ommand.h:

    • Patch Set= #10, Line 52: #define = S_NOWAITPID (1<<3)

      the indenting here looks l= ike one is using tab, one is using spaces

      Done

  • File src/openvpn/tun_afunix.c:

    • Patch Set #10, Line 39: #if defined(AF_UNIX) &&= ; !defined(WIN32)

      I do wonder if the conditional on `= AF_UNIX` is really needed (here and elsewhere). [=E2=80=A6]

      Done

    • Patch Set #10, Line 125:

      should we `wait()`? Or are we handling SIG= CHLD elsewhere?

      I am not sure that waiting is really needed. We could wait = to ensure that the child really exits. We currently ignore SIGCHLD and that= means that the process will just die.

To view, v= isit chan= ge 747. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I65099ef00822d08fd3f5480c808= 92f3bf86c56e7
Gerrit-Change-Number: 747
Gerrit-PatchSet: 10
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: cron2 <gert@...1296...>=
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: cron2 <gert@...1296...>= ;
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Tue, 24 Sep 2024 08:21:53= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...= >
Gerrit-MessageType: comment
--EVEZ/YUwhtg=--