matiasinsaurralde / facebook-tunnel

Tunneling Internet traffic over Facebook chat.
1.29k stars 82 forks source link

I want Mac support... #1

Open kennym opened 10 years ago

kennym commented 10 years ago

...because I am an Apple user. ;)

matiasinsaurralde commented 10 years ago

ok, i'll get a mac and start working on it :)

kennym commented 10 years ago

Cuando corro sudo make me tira ese error - vos sabes cual librería usar en vez de linux/if.h para OS X?

+ glibtoolize
+ aclocal -I m4
+ autoconf
+ automake --add-missing
/bin/sh: /Users/kenny/missing: No such file or directory
configure: WARNING: 'missing' script is too old or missing
tun_dev.c:35:10: fatal error: 'linux/if.h' file not found
#include <linux/if.h>
         ^
1 error generated.
make: *** [main] Error 1
matiasinsaurralde commented 10 years ago

Take a look: http://tuntaposx.sourceforge.net/

kennym commented 10 years ago

Looks kind of not-maintained. Maybe I can come up with something better, give me until this weekend. I've got it running on my VPS in the mean-time.

matiasinsaurralde commented 10 years ago

Cool, I have it on my vps too. I'll write a quick readme in a few hours, pointing details about missing functionality.

ryanjamurphy commented 9 years ago

@kennym any luck on this? any way I can help?

acipm commented 9 years ago

I tried to replace it with #include <net/if.h> . I'm not sure if that is a good solution but the error is gone. The next error it shows is:

/Users/.../facebook-tunnel/tun.cpp:43:10: fatal error: 
      'linux/if_tun.h' file not found
#include <linux/if_tun.h>
         ^
1 error generated.
make[2]: *** [CMakeFiles/tun.dir/tun.cpp.o] Error 1
make[1]: *** [CMakeFiles/tun.dir/all] Error 2
make: *** [all] Error 2 

After googling around i guess Mac does not have if_tun.h in /usr/include/net/, so I'm stuck here. Maybe someone should just rewrite tun.cpp and tun.c for Mac ...

kennym commented 9 years ago

After googling around i guess Mac does not have if_tun.h in /usr/include/net/, so I'm stuck here. Maybe someone should just rewrite tun.cpp and tun.c for Mac ...

That's what is blocking me on Darwin. Anyone smart enough to come up with an implementation or alternative?

TalentFang commented 1 year ago

Hi kennym: is there any solution found for this problem? thanks.

theGowda commented 1 year ago

http://tuntaposx.sourceforge.net/

were you able to find a solution?

kennym commented 1 year ago

Nope, and I'm pretty sure Facebook has changed their API by a lot by now, but please try.

theGowda commented 1 year ago

Ya I was not concerned about facebook tunnel specifically. I was just trying to port an old code base written for linux to mac os. And this if.h was the only thing remaining. So wanted to know how you all fixed it. Cheers!