discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Re: tun/tap OS X for tunneling


From: Johnathan Corgan
Subject: Re: [Discuss-gnuradio] Re: tun/tap OS X for tunneling
Date: Tue, 6 Jan 2009 08:39:52 -0800

On Tue, Jan 6, 2009 at 6:34 AM, Mark Kuhr <address@hidden> wrote:

> ifs = ioctl(tun, TUNSETIFF, struct.pack("16sH", "gr%d", mode))
>
> I'm guessing there is a difference in the ioctl implementation between linux
> and OS X.  I'm working through it and will post any progress.  But if
> someone can point out what's wrong that would be helpful.

In tunnel.py, line 77, TUNSETIFF is hardcoded to a value appropriate
for Linux, which really is defined in linux/tun_if.h (see comment on
line 66).

It's almost a certainty this value is invalid for OS X.

-Johnathan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]