Thursday, November 28, 2019

Re: net/mlvpn ioctl(TUNSIFMODE): Invalid argument

Solene Rapenne <solene@perso.pw> wrote:
> On Thu, Nov 28, 2019 at 01:35:11PM +0100, Tim Kuijsten wrote:
> > Looking at [1] I see they don't set tuninfo.type. This should be set to
> > IFT_TUNNEL:
> > net/if_types.h:#define IFT_TUNNEL 0x83
> >
> > Does that help?
> >
> > [1] https://github.com/zehome/MLVPN/blob/2.3.2/src/tuntap_bsd.c#L146-L150
> >
>
> with the following patch it starts but I can't see any mlvpn process
> running, but it starts without any error message.
> I'll try setting up a server now and see if it works.
>
> Thanks for the help!

I personally set tunnel interfaces in wiresep to non-PTP and respect
whatever other flag was already set by default [1]. In PTP mode my
address assignment code fails later on, I assume because of prefix
masks.

[1]
https://github.com/timkuijsten/wiresep/blob/v0.8.4/ifn.c#L2502-L2508

No comments:

Post a Comment