From: "flichtenheld (Code Review)" Date: Mon, 16 Sep 2024 12:39:30 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, ralf@...2726... Message-ID: <0533abe0108febd6a801abd82cad461c4a816ee2-EmailReviewComments-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="eV/aMQHOsPo="; charset=UTF-8 Subject: [Openvpn-devel] [L] Change in openvpn[master]: Support CIDR on options and extend netbits usage List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: ralf_lici Cc: plaisthos , openvpn-devel --eV/aMQHOsPo= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos, ralf_lici. flichtenheld has posted comments on this change. ( http://gerrit.openvpn.ne= t/c/openvpn/+/739?usp=3Demail ) Change subject: Support CIDR on options and extend netbits usage ...................................................................... Patch Set 3: (12 comments) Commit Message: http://gerrit.openvpn.net/c/openvpn/+/739/comment/af57c291_7928346b : PS3, Line 9: Add support for CIDR notation on all suitable options (client-= nat, Maybe give some more motivation here. Why is this good for users? Is the as= sumption that this notation is easier to use for users? Patchset: PS3: Finished with first pass over the whole change. File src/openvpn/route.c: http://gerrit.openvpn.net/c/openvpn/+/739/comment/442c7c8d_d509e97e : PS3, Line 324: const in_addr_t default_netbits =3D IPV4_NETBITS_HOST; unsigned int? http://gerrit.openvpn.net/c/openvpn/+/739/comment/49b38146_172bf62a : PS3, Line 331: const char *cidr =3D strchr(network, '/'); Would convert to bool here to make it clear purpose http://gerrit.openvpn.net/c/openvpn/+/739/comment/9927b3a3_4809d0a7 : PS3, Line 347: convert Want to do a drive-by fix? "a a" -> "to an"? http://gerrit.openvpn.net/c/openvpn/+/739/comment/86ce371b_4860dec8 : PS3, Line 1105: route Maybe add a 0.0.0.0/1 and 128.0.0.0/1 to the comments just to make it sligh= tly easier to read? http://gerrit.openvpn.net/c/openvpn/+/739/comment/f88439ab_4ecf8430 : PS3, Line 1166: route ( Same (0.0.0.0/1 and 128.0.0.0/1) here. http://gerrit.openvpn.net/c/openvpn/+/739/comment/77dbbd70_ab423838 : PS3, Line 1456: Maybe we could move this into the if block? Not sure why we would create it= otherwise? File src/openvpn/tun.c: http://gerrit.openvpn.net/c/openvpn/+/739/comment/cbb88db5_f07c3af6 : PS3, Line 512: const bool looks_like_netmask =3D addr && ((addr & 0xFF0= 00000) =3D=3D 0xFF000000); Isn't this redundant? If addr is 0 the second part never matches anyway http://gerrit.openvpn.net/c/openvpn/+/739/comment/79c39edc_b5bdb970 : PS3, Line 524: Shouldn't that be "&&" ? http://gerrit.openvpn.net/c/openvpn/+/739/comment/e80071f2_d2431db9 : PS3, Line 562: const in_addr_t public_net =3D public &netmask; Add space after & ? http://gerrit.openvpn.net/c/openvpn/+/739/comment/7d0d0823_03c88869 : PS3, Line 591: & Add space after & -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/739?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: Iae04ad8715e40dfc76475c2c5b9a766c9604efc9 Gerrit-Change-Number: 739 Gerrit-PatchSet: 3 Gerrit-Owner: ralf_lici Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: ralf_lici Gerrit-Comment-Date: Mon, 16 Sep 2024 12:39:30 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: No Gerrit-MessageType: comment --eV/aMQHOsPo= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos, ralf_lici.

View C= hange

12 comments:

To view, visit change 739. To u= nsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Iae04ad8715e40dfc76475c2c5b9= a766c9604efc9
Gerrit-Change-Number: 739
Gerrit-PatchSet: 3
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-Attention: ralf_lici <ralf@...2804...= .>
Gerrit-Comment-Date: Mon, 16 Sep 2024 12:39:30= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
--eV/aMQHOsPo=--