From: "ralf_lici (Code Review)" Date: Wed, 11 Sep 2024 16:53:26 +0000 In-Reply-To: References: Reply-To: ralf@...2726..., arne-openvpn@...1227..., 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="REVG/Vhxa1w="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Fix check_addr_clash argument order List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: flichtenheld , plaisthos , openvpn-devel --REVG/Vhxa1w= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. ralf_lici has posted comments on this change. ( http://gerrit.openvpn.net/c= /openvpn/+/737?usp=3Demail ) Change subject: Fix check_addr_clash argument order ...................................................................... Patch Set 1: (1 comment) Patchset: PS1: > Code change makes sense to me, but I haven' tested it. [=E2=80=A6] If you simply want to evaluate if the order is coherent between the argumen= ts you can enable the debugging code at the beginning of check_addr_clash(). To actually trigger the tun warning I created a tuntap interface (tun0) and= set the ip address to 10.10.20.1/24. Then I executed: openvpn --ifconfig 10.10.20.10 255.255.255.0 --local 10.10.20.1 --dev tun0= --topology subnet ... The tap warning can be triggered by executing: openvpn --ifconfig 10.10.20.10 255.255.255.0 --local 10.10.20.1 --dev tap .= .. Nevertheless I could not find a way to trigger the first warning in check_a= ddr_clash() (line 564) because I think a previous check already ensures tha= t --local or --remote addresses are not the same as the --ifconfig addresse= s (but I'm not entirely sure if this is always the case). -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/737?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: I5adbe0a79f078221c4bb5f3d39391a81b4d8adce Gerrit-Change-Number: 737 Gerrit-PatchSet: 1 Gerrit-Owner: ralf_lici Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Comment-Date: Wed, 11 Sep 2024 16:53:26 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Comment-In-Reply-To: flichtenheld Gerrit-MessageType: comment --REVG/Vhxa1w= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

View C= hange

1 comment:

    <= li style=3D"margin: 0; padding: 0;">

    Patchset:

    • Patch Set #1:

      Code change makes sens= e to me, but I haven' tested it. [=E2=80=A6]

      If you simply want to ev= aluate if the order is coherent between the arguments you can enable the de= bugging code at the beginning of check_addr_clash().

      To actually trigger the tun warning= I created a tuntap interface (tun0) and set the ip address to 10.10.20.1/2= 4. Then I executed:
      openvpn --ifconfig 10.10.20.10 255.255.255.0 --loca= l 10.10.20.1 --dev tun0 --topology subnet ...

      The tap warning can be triggered by execut= ing:
      openvpn --ifconfig 10.10.20.10 255.255.255.0 --local 10.10.20.1 --d= ev tap ...

      Ne= vertheless I could not find a way to trigger the first warning in check_add= r_clash() (line 564) because I think a previous check already ensures that = --local or --remote addresses are not the same as the --ifconfig addresses = (but I'm not entirely sure if this is always the case).

To view, visit change 737. To unsubscribe, or for help writing mail f= ilters, visit settings.<= /p>

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5adbe0a79f078221c4bb5f3d393= 91a81b4d8adce
Gerrit-Change-Number: 737
Gerrit-PatchSet: 1
Gerrit-Owner: ralf_lici <ralf@...2726...>= ;
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-Comment-Date: Wed, 11 Sep 2024 16:53:26= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: flichtenheld <frank@...1186...= .2641...>
Gerrit-MessageType: comment
--REVG/Vhxa1w=--