From: "kallisti5 (Code Review)"
Date: Thu, 28 Nov 2024 15:14:24 +0000
In-Reply-To:
References:
Reply-To: alex@...2837..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...,
gert@...1296...
Message-ID: <69873f4ef2b79d6dd8558a07ee051743ad0145d8-EmailReviewComments-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="CAMXPAJOgsg="; charset=UTF-8
Subject: [Openvpn-devel] [M] Change in openvpn[master]: Haiku: Add calls to
manage routing table
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Cc: cron2 , flichtenheld , plaisthos , openvpn-devel
--CAMXPAJOgsg=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, plaisthos.
kallisti5 has posted comments on this change. ( http://gerrit.openvpn.net/c=
/openvpn/+/688?usp=3Demail )
Change subject: Haiku: Add calls to manage routing table
......................................................................
Patch Set 11:
(10 comments)
Patchset:
PS10:
All complete.
I should note that the full functionality of these changes depends on https=
://review.haiku-os.org/c/haiku/+/8592
(tldr; we only accept "default" for the default gateway, while everyone els=
e seems to also accept 0.0.0.0 / ::. Instead of hacking in "0.0.0.0 -> d=
efault" in the openvpn source code, I opted to add support for "0.0.0.0" as=
the default gw in the route command of Haiku)
I'm planning on getting that change into the most recent stable release of =
Haiku as well to make sure openvpn works out of the box.
File src/openvpn/route.c:
http://gerrit.openvpn.net/c/openvpn/+/688/comment/6ac793fe_ff5b6200 :
PS8, Line 1858: {
> please remove this indentation level, it looks unnecessary. [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/e0159a17_04786e1d :
PS8, Line 2350: {
> same here
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/c21c4740_b10d021b :
PS8, Line 2543: {
> same here. [=E2=80=A6]
I went ahead and added the IPv6 route addition code.
Our IPv6 stack exists, and is baseline functional, but it's not well tested=
and has known faults (thus the priority was low)
However, our routing all should work fine... so I went ahead and implemente=
d the ipv6 route add call.
http://gerrit.openvpn.net/c/openvpn/+/688/comment/ef8e2b2d_3b195cb1 :
PS8, Line 3940: if (sockfd < 0) {
> this is a style guide violation - normally, for first time submitters, I'=
d fix that on the fly but s [=E2=80=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/0e55a08d_ab176494 :
PS8, Line 3947: if (ioctl(sockfd, SIOCGRTSIZE, &config, sizeof(struct i=
fconf)) < 0) {
> this
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/a3a35f3d_7632b680 :
PS8, Line 3954: return;
> we require to always have braces, even if it's a single statement [=E2=80=
=A6]
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/15fc33c0_b4d9d006 :
PS8, Line 3961: if (ioctl(sockfd, SIOCGRTTABLE, &config, sizeof(struct =
ifconf)) < 0) {
> bracket
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/eaf2eaa7_c865a3e5 :
PS8, Line 3969: while (interface < end) {
> bracket
Done
http://gerrit.openvpn.net/c/openvpn/+/688/comment/f5cf04fe_ffc728c3 :
PS8, Line 3978: if (route.destination !=3D NULL)
> these need braces...
Done
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/688?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: I1a22724f28c5cd47f6df178b49f44087d7c2b6fd
Gerrit-Change-Number: 688
Gerrit-PatchSet: 11
Gerrit-Owner: kallisti5
Gerrit-Reviewer: cron2
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: cron2
Gerrit-Attention: flichtenheld
Gerrit-Comment-Date: Thu, 28 Nov 2024 15:14:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2
Gerrit-MessageType: comment
--CAMXPAJOgsg=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: cron2, flichtenheld, plaisthos. <=
/p>
View C=
hange
10 comments:
Done
=
Patch Set #8, Line 2350: {
same here
Done
Patch Set #8,=
Line 2543: {
same here. [=E2=80=A6]
I went ahead and added the IPv6 rou=
te addition code.
Our IPv6 stack exists, and is baseline functional, but it's not we=
ll tested and has known faults (thus the priority was low)
However, our routing all shou=
ld work fine... so I went ahead and implemented the ipv6 route add call.
Patch Set #8, Line 3940: if (sockfd < 0) {
this is a s=
tyle guide violation - normally, for first time submitters, I'd fix tha=
t on the fly but s [=E2=80=A6]
Done
Patch Set #8, Line 394=
7: if (ioctl(sockfd=
, SIOCGRTSIZE, &config, sizeof(struct ifconf)) < 0) {
<=
blockquote style=3D"border-left: 1px solid #aaa; margin: 10px 0; padding: 0=
10px;">this
Done
Patch Set #8, Line 3954: return;
=
we require to always have braces, even if it's a single statement [=E2=
=80=A6]
Done
Patch Set #8, Line 3961: if (ioctl(sockfd, SIOCGRTTABLE, &co=
nfig, sizeof(struct ifconf)) < 0) {
bracketDone=
p>
Patch Set #8, Line 3969: while (interface < end) {
br=
acket
Done
Patch Set #8, Line 3978: if (route.destination !=3D NULL)
these need braces...
Done
To =
view, visit change 688. To unsubscribe, or for help writing mail filters, visit =
settings.
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1a22724f28c5cd47f6df178b49f=
44087d7c2b6fd
Gerrit-Change-Number: 688
Gerrit-PatchSet: 11
Gerrit-Owner: kallisti5 <alex@...2837...>=
;
Gerrit-Reviewer: cron2 <gert@...1296...>=
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: cron2 <gert@...1296...>=
;
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Comment-Date: Thu, 28 Nov 2024 15:14:24=
+0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: cron2 <gert@...1296...=
>
Gerrit-MessageType: comment
--CAMXPAJOgsg=--