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!


Index: src/tuntap_bsd.c
--- src/tuntap_bsd.c.orig
+++ src/tuntap_bsd.c
@@ -146,6 +146,7 @@ root_tuntap_open(int tuntapmode, char *devname, int mt
         struct tuninfo tuninfo;
         tuninfo.mtu = mtu;
         tuninfo.flags = IFF_POINTOPOINT;
+       tuninfo.type = IFT_TUNNEL;
         tuninfo.baudrate = 0;
         if (ioctl(fd, TUNSIFINFO, &tuninfo, sizeof(tuninfo)) < 0) {
             warn("ioctl(TUNSIFMODE)");

Reply via email to