From: "stipa (Code Review)" Date: Thu, 24 Apr 2025 06:58:36 +0000 In-Reply-To: References: Reply-To: lstipakov@...277..., arne-openvpn@...1227..., selva.nair@...277..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="qvvOjR6MZRE="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: win: create adapter on demand List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: selvanair , plaisthos , flichtenheld , openvpn-devel --qvvOjR6MZRE= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos, selvanair. stipa has posted comments on this change. ( http://gerrit.openvpn.net/c/ope= nvpn/+/943?usp=3Demail ) Change subject: win: create adapter on demand ...................................................................... Patch Set 2: (3 comments) File src/openvpn/tun.c: http://gerrit.openvpn.net/c/openvpn/+/943/comment/e2801d99_1753f1ba : PS2, Line 3781: static struct device_instance_id_interface * > This change is not required nor advisable. Same with panel_reg and tap_re= g below. [=E2=80=A6] Acknowledged http://gerrit.openvpn.net/c/openvpn/+/943/comment/78901121_07cb7bb3 : PS2, Line 6656: struct device_instance_id_interface *device_instance_id= _interface =3D get_device_instance_id_interface(gc); > Define these three as "const struct ...". One can still re-assign them as= required below. right, the data is const, but not the pointer. http://gerrit.openvpn.net/c/openvpn/+/943/comment/36c92149_f13d12e9 : PS2, Line 6731: if (tun_try_open_device(tt, *device_guid, devic= e_instance_id_interface)) > I think we should not limit this using the adapter_created flag here. [= =E2=80=A6] Acknowledged -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/943?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: I621d44ec6b0facc524875c15ddfd11ec47b06c15 Gerrit-Change-Number: 943 Gerrit-PatchSet: 2 Gerrit-Owner: stipa Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-Reviewer: selvanair Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Attention: selvanair Gerrit-Comment-Date: Thu, 24 Apr 2025 06:58:36 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: selvanair Gerrit-MessageType: comment --qvvOjR6MZRE= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos, selvanai= r.

View C= hange

3 comments:

    =
  • File src/openvpn/tun.c:

    • Patch Set #2, Line 3781: <= code style=3D"font-family:monospace,monospace">static struct device_instanc= e_id_interface *

      This change is not required nor advi= sable. Same with panel_reg and tap_reg below. [=E2=80=A6]

      <= p style=3D"white-space: pre-wrap; word-wrap: break-word;">Acknowledged

      <= /li>
    • Patch Set #2, Line 6656: struct device_instance_id_interface *device_instance_id_= interface =3D get_device_instance_id_interface(gc);

      D= efine these three as "const struct ...". One can still re-assign = them as required below.

      right, the data is const, but not the pointer.

      <= /li>
    • Patch Set #2, Line 6731: if (tun_try_open_device(tt, *device_guid, device= _instance_id_interface))

      I think we should not limit = this using the adapter_created flag here. [=E2=80=A6]

      Acknowledged

    • =

To view, visit change 943. To unsubscribe, or for help writing= mail filters, visit setting= s.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I621d44ec6b0facc524875c15ddf= d11ec47b06c15
Gerrit-Change-Number: 943
Gerrit-PatchSet: 2
Gerrit-Owner: stipa <lstipakov@...277...>= ;
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
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: flichtenheld <frank@...2375...= 41...>
Gerrit-Attention: selvanair <selva.nair@...493...= 277...>
Gerrit-Comment-Date: Thu, 24 Apr 2025 06:58:36= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: selvanair <selva.nair@= ...277...>
Gerrit-MessageType: comment
--qvvOjR6MZRE=--