[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openvpn-devel
Subject:    Re: [Openvpn-devel] [ovpn-dco] try to port to kernel 4.14.76, but can not join AF_NETLINK group
From:       Tony He <huangya90 () gmail ! com>
Date:       2021-03-30 14:57:52
Message-ID: CAAUX2SX3zaRbFuP2n-GCj74YDtrkVVnA5PrtXzR=uCYCwAWK=A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Antonio,

The issue is I used Arne's working dco branch, it fails to register
AF_NETLINK group.
Old code like:
  int ret = nl_socket_add_memberships(dco->nl_sock, dco->ovpn_dco_mcast_id,
                                        RTNLGRP_LINK, RTNLGRP_NOTIFY,
RTNLGRP_NONE);

I see Arne just pushed new code:
int ret = nl_socket_add_membership(dco->nl_sock, dco->ovpn_dco_mcast_id);

Had a quick test, it's fine. I'm not sure why the old code in my X86-64 PC
is OK while it
doesn't work in this MIPS64 router. Maybe it's not related with the kernel
version.

Tony

Antonio Quartulli <a@unstable.cc> 于2021年3月30日周二 下午10:37写道:

> Hi Tony,
>
> On 30/03/2021 12:23, Arne Schwabe wrote:
> > Am 30.03.21 um 09:36 schrieb Tony He:
> >> Hi Antonio, Arne,
> >>
> >> Sorry to bother you. I have a router based on Linux kernel
> >> 4.14.76(4.14.x is LTS version). Because of some reasons,
> >> it's hard to upgrade to v5.x to play ovpn-dco. So I am porting ovpn-dco
> >> to 4.14.76 kernel. After some hacking, it's almost done.
> >> Now it seems that  only one issue needs to be resolved. The issue is
> >> openvpn 2.6 dco fails to join AF_NETLINK group.
> >>
> >
> > Note that we currently do not intent to support or do active development
> > on such old kernels.
> >
>
> Even if not currently on the roadmap, please let us know if you
> encounter particular issues with this kernel. I'd be interested in
> hearing about those, if any.
>
> Regards,
>
>
>
> --
> Antonio Quartulli
> OpenVPN Inc.
>
> --
> Antonio Quartulli
>

[Attachment #5 (text/html)]

<div dir="ltr"><div>Hi Antonio,</div><div><br></div><div>The issue is I used \
Arne&#39;s working dco branch, it fails to register AF_NETLINK group.</div><div>Old \
code like:</div><div>   int ret = nl_socket_add_memberships(dco-&gt;nl_sock, \
dco-&gt;ovpn_dco_mcast_id,<br>                                                        \
RTNLGRP_LINK, RTNLGRP_NOTIFY, RTNLGRP_NONE);</div><div><br></div><div>I see Arne just \
pushed new code:</div><div>int ret = nl_socket_add_membership(dco-&gt;nl_sock, \
dco-&gt;ovpn_dco_mcast_id);</div><div><br></div><div>Had a quick test, it&#39;s fine. \
I&#39;m not sure why the old code in my X86-64 PC is OK while \
it</div><div>doesn&#39;t work in this MIPS64 router. Maybe it&#39;s not related with \
the kernel version.</div><div><br></div><div>Tony<br></div><div><br></div><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">Antonio Quartulli \
&lt;a@unstable.cc&gt; 于2021年3月30日周二 \
下午10:37写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px \
0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Tony,<br> <br>
On 30/03/2021 12:23, Arne Schwabe wrote:<br>
&gt; Am 30.03.21 um 09:36 schrieb Tony He:<br>
&gt;&gt; Hi Antonio, Arne,<br>
&gt;&gt;<br>
&gt;&gt; Sorry to bother you. I have a router based on Linux kernel<br>
&gt;&gt; 4.14.76(4.14.x is LTS version). Because of some reasons,  <br>
&gt;&gt; it&#39;s hard to upgrade to v5.x to play ovpn-dco. So I am porting \
ovpn-dco<br> &gt;&gt; to 4.14.76 kernel. After some hacking, it&#39;s almost \
done.<br> &gt;&gt; Now it seems that   only one issue needs to be resolved. The issue \
is<br> &gt;&gt; openvpn 2.6 dco fails to join AF_NETLINK group.<br>
&gt;&gt;<br>
&gt; <br>
&gt; Note that we currently do not intent to support or do active development<br>
&gt; on such old kernels.<br>
&gt; <br>
<br>
Even if not currently on the roadmap, please let us know if you<br>
encounter particular issues with this kernel. I&#39;d be interested in<br>
hearing about those, if any.<br>
<br>
Regards,<br>
<br>
<br>
<br>
-- <br>
Antonio Quartulli<br>
OpenVPN Inc.<br>
<br>
-- <br>
Antonio Quartulli<br>
</blockquote></div></div>





_______________________________________________
Openvpn-devel mailing list
Openvpn-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic