Skip to content

huangty/PPPWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Environment
================
sudo ifconfig veth0 166.129.123.9 netmask 255.255.255.255
sudo route add -net 10.64.64.64 netmask 255.255.255.255 veth0
sudo route del -net 10.64.64.64 netmask 255.255.255.255 ppp0
sudo route add default dev veth0
sudo route del default dev ppp0

Compile on PC
================
gcc -lpthread wrapper.c -o wrapper
sudo ./wrapper ppp0 veth1 3G_IPADDR
(see wrapper.sh for sample usage)

Compile for Android
================
make CROSS_COMPILE=arm-eabi-


Recover Environment
================
sudo route del -net 10.64.64.64 netmask 255.255.255.255 veth0
sudo route add -net 10.64.64.64 netmask 255.255.255.255 ppp0
sudo route add default dev ppp0
sudo route del default dev veth0
(see test_wrapper.sh to sample environment setup)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published