From: "stipa (Code Review)" Date: Mon, 31 Jul 2023 11:28:31 +0000 In-Reply-To: References: Reply-To: lstipakov@...277..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, frank@...2641..., a@...2181... Message-ID: <55b78243d2cbe1bd3f8015b10363ef849719b909-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="eeLvlh4NU4E="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[release/2.6]: Set WINS servers via interactice service List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: plaisthos , selvanair , flichtenheld , openvpn-devel --eeLvlh4NU4E= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: cron2, flichtenheld, ordex, plaisthos= , selvanair. stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/321?usp=3Demail ) Change subject: Set WINS servers via interactice service ...................................................................... Patch Set 3: (4 comments) File src/openvpnserv/interactive.c: http://gerrit.openvpn.net/c/openvpn/+/321/comment/6605e8bb_4222a8d1 : PS1, Line 1089: * @param action "delete" or "add" > This says "add" but the rest of the function seems to use "set". [=E2=80= =A6] Right. I copypasted it from DNS version which uses add. http://gerrit.openvpn.net/c/openvpn/+/321/comment/b9b566c1_c7e3b460 : PS1, Line 1094: * if action =3D "set" then "static" is added before $addr > Why are you using "set" here? The documentation (https://learn.microsoft.= [=E2=80=A6] Good point. The reason I use "set" is because I checked the logs of current= implementation which uses "set". Idea of multiple WINS servers slipped fro= m my mind. I checked the code and we use "set + static" for the first serve= r and "set" for the rest, if any. Will to the same here. http://gerrit.openvpn.net/c/openvpn/+/321/comment/bf8912f9_5365fe44 : PS1, Line 1406: if (addr_len > 0 || msg->header.type =3D=3D msg_del_win= s_cfg) > Is there ever a case where this would be false? Normally no, but this request comes from unprivileged userspace process, wh= ich we probably do not want to trust. http://gerrit.openvpn.net/c/openvpn/+/321/comment/0b1bcdb1_cc02227e : PS1, Line 1436: if (msg->addr_len > 0) > Nitpick: Should be addr_len, not msg->addr_len Should not matter here, copypaste from similar DNS function. But I can chan= ge it. -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/321?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: release/2.6 Gerrit-Change-Id: I47c22dcb728011dcedaae47cd03a57219e9c7607 Gerrit-Change-Number: 321 Gerrit-PatchSet: 3 Gerrit-Owner: stipa Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: ordex Gerrit-Reviewer: plaisthos Gerrit-Reviewer: selvanair Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: cron2 Gerrit-Attention: flichtenheld Gerrit-Attention: ordex Gerrit-Attention: selvanair Gerrit-Comment-Date: Mon, 31 Jul 2023 11:28:31 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: flichtenheld Gerrit-MessageType: comment --eeLvlh4NU4E= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: cron2, flichtenheld, ordex, plais= thos, selvanair.

View C= hange

4 comments:

    =
  • File src/openvpnserv/interactive.c:=

    • Patch Set #1, Line= 1089: * @param actio= n "delete" or "add"

      This say= s "add" but the rest of the function seems to use "set"= . [=E2=80=A6]

      Right. I copypasted it from DNS version which uses add.

    • Patch Set #1, Line 1094: * if action =3D "set" then "static" is a= dded before $addr

      Why are you using "set" h= ere? The documentation (https://learn.microsoft. [=E2=80=A6]

      Good point. Th= e reason I use "set" is because I checked the logs of current imp= lementation which uses "set". Idea of multiple WINS servers slipp= ed from my mind. I checked the code and we use "set + static" for= the first server and "set" for the rest, if any. Will to the sam= e here.

    • Patch Set #1, Line 1406: if (addr_len > 0 || msg->header.type = =3D=3D msg_del_wins_cfg)

      Is there ever a case where t= his would be false?

      Normally no, but this request comes from unprivileged u= serspace process, which we probably do not want to trust.

    • = Patch Set #1, Line 1436: if (msg->addr_len > 0)

      Nitpick: Should be= addr_len, not msg->addr_len

      Should not matter here, copypaste from simi= lar DNS function. But I can change it.

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

Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I47c22dcb728011dcedaae47cd03= a57219e9c7607
Gerrit-Change-Number: 321
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: ordex <a@...2181...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-Reviewer: selvanair <selva.nair@...1665...= 77...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: cron2
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: ordex <a@...2181...> <= /div>
Gerrit-Attention: selvanair <selva.nair@...493...= 277...>
Gerrit-Comment-Date: Mon, 31 Jul 2023 11:28:31= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
Gerrit-MessageType: comment
--eeLvlh4NU4E=--