From: "cron2 (Code Review)" Date: Sat, 27 Sep 2025 20:27:42 +0000 In-Reply-To: References: Reply-To: gert@...1296..., 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="t/aok7DrcTY="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: Allowing installing FreeBSD routes with interface instead of next-hop List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --t/aok7DrcTY= 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. ( http://gerrit.openvpn.net/c/ope= nvpn/+/1193?usp=3Demail ) Change subject: Allowing installing FreeBSD routes with interface instead o= f next-hop ...................................................................... Patch Set 3: Code-Review-1 (1 comment) File src/openvpn/networking_freebsd.c: http://gerrit.openvpn.net/c/openvpn/+/1193/comment/ca46df8e_422ac899 : PS3, Line 23: /* if gw is 0 (=3D0.0.0.0), which is not a valid gateway, are you passing in NULL or "a pointer to 0.0.0.0"? The code says "NULL" an= d the comment says "gw is 0.0.0.0" which would technically be "a pointer to= 0.0.0.0"... Maybe just word it the same as in IPv6... `if we have no gateway (gw is NUL= L), we are installing a route with the interface as target instead` or so. But the logic is still confusing, the comment says "if we have no gateway" = and the condition does "if(gateway)" and the "interface route" is down in t= he else branch... -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1193?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: I88e16e15fad065cb310d38f09924053efc3a6ce5 Gerrit-Change-Number: 1193 Gerrit-PatchSet: 3 Gerrit-Owner: plaisthos Gerrit-Reviewer: cron2 Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Sat, 27 Sep 2025 20:27:42 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes Gerrit-MessageType: comment --t/aok7DrcTY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld, plaisthos.

Patch set 3:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/networking_fre= ebsd.c:

    • Patch Set = #3, Line 23: /* if = gw is 0 (=3D0.0.0.0), which is not a valid gateway,

      are you passing in NULL or &q= uot;a pointer to 0.0.0.0"? The code says "NULL" and the com= ment says "gw is 0.0.0.0" which would technically be "a poin= ter to 0.0.0.0"...

      Maybe just word it the same as in IPv6... `if we have no gateway= (gw is NULL), we are installing a route with the interface as target inste= ad` or so.

      Bu= t the logic is still confusing, the comment says "if we have no gatewa= y" and the condition does "if(gateway)" and the "interf= ace route" is down in the else branch...

To = view, visit change 1193. To unsubscribe, or for help writing mail filters, visi= t settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I88e16e15fad065cb310d38f0992= 4053efc3a6ce5
Gerrit-Change-Number: 1193
Gerrit-PatchSet: 3
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: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Sat, 27 Sep 2025 20:27:42= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
--t/aok7DrcTY=--