[Hero, G2 Touch Android Development] wesley sun:
the log is:

D/VpnManager( 456): succeeded to connect to VPN service

D/com.android.settings.vpn.AuthenticationActor( 456): ~~~~~~ connect() succeede

d!

D/VpnSettings( 456): received connectivity: Us: connected? CONNECTING err=0

I/SProxy_mtpd( 3042): Stop VPN daemon: mtpd

D/SProxy_mtpd( 3042): mtpd is stopped after 0 msec

D/SProxy_mtpd( 3042): stopping mtpd, success? true

I/SProxy_racoon( 3042): Stop VPN daemon: racoon

D/SProxy_racoon( 3042): racoon is stopped after 0 msec

D/SProxy_racoon( 3042): stopping racoon, success? true

D/VpnService( 3042): Local IP: 192.168.1.100, if: tiwlan0

D/JOGBALL ( 103): Jogball, + set_jogball_mode mode=0

D/VpnService( 3042): VPN UP: down

I/SProxy_mtpd( 3042): Start VPN daemon: mtpd

D/SProxy_mtpd( 3042): mtpd is running after 0 msec

D/mtpd ( 3098): Waiting for control socket

D/SProxy_mtpd( 3042): service not yet listen()ing; try again

D/mtpd ( 3098): Received 19 arguments

I/mtpd ( 3098): Using protocol l2tp

I/mtpd ( 3098): Connecting to 74.86.0.138 port 1701

I/mtpd ( 3098): Connection established (socket = 9)

D/mtpd ( 3098): Sending SCCRQ (local_tunnel = 5066)

I/SProxy_mtpd( 3042): got data from control socket: 19

D/mtpd ( 3098): Received SCCRP (remote_tunnel = 65291) -> Sending SCCCN

D/mtpd ( 3098): Received ACK -> Sending ICRQ (local_session = 21228)

I/mtpd ( 3098): Tunnel established

D/mtpd ( 3098): Received ICRP (remote_session = 256) -> Sending ICCN

D/mtpd ( 3098): Received ACK

I/mtpd ( 3098): Session established

I/mtpd ( 3098): Creating PPPoX socket

F/mtpd ( 3098): Socket() Address family not supported by protocol

I/wpa_supplicant( 487): CTRL-EVENT-STATE-CHANGE id=0 state=6

V/WifiMonitor( 103): Event [CTRL-EVENT-STATE-CHANGE id=0 state=6]

V/WifiStateTracker( 103): Changing supplicant state: COMPLETED ==> GROUP_HANDSH

AKE

I/wpa_supplicant( 487): WPA: Group rekeying completed with 00:21:27:3d:37:76 [G

TK=TKIP]

I/wpa_supplicant( 487): CTRL-EVENT-STATE-CHANGE id=0 state=7

V/WifiMonitor( 103): Event [WPA: Group rekeying completed with 00:21:27:3d:37:7

6 [GTK=TKIP]]

V/WifiMonitor( 103): Event [CTRL-EVENT-STATE-CHANGE id=0 state=7]

V/WifiStateTracker( 103): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLE

TED

I/global ( 103): Default buffer size used in BufferedReader constructor. It wo

uld be better to be explicit if an 8k-char buffer is required.

D/WifiService( 103): ACTION_BATTERY_CHANGED pluggedType: 2

I/global ( 103): Default buffer size used in BufferedReader constructor. It wo

uld be better to be explicit if an 8k-char buffer is required.

D/BatteryService( 103): isUsbConnected() = true

D/BatteryService( 103): mPlugType = 2

D/UsbConnectedReceiver( 274): action = psclient.intent.action.usb_status

D/UsbConnectedReceiver( 274): ACTION_BATTERY_CHANGED

D/UsbConnectedReceiver( 274): usbCurrentType = 2

D/UsbConnectedReceiver( 274): Current type is same as previous, return!

E/VpnService( 3042): onError()

E/VpnService( 3042): java.io.IOException: Connecting timed out

E/VpnService( 3042): at com.android.server.vpn.VpnService.waitUntilConnectedO

rTimedout(VpnService.java:210)

E/VpnService( 3042): at com.android.server.vpn.VpnService.onConnect(VpnServic

e.java:139)

E/VpnService( 3042): at com.android.server.vpn.VpnServiceBinder$2.run(VpnServ

iceBinder.java:108)

E/VpnService( 3042): at java.lang.Thread.run(Thread.java:1096)

I/VpnService( 3042): disconnecting VPN...

D/VpnSettings( 456): received connectivity: Us: connected? DISCONNECTING err=

0

I/DumpStateReceiver( 103): Added state dump to 1 crashes

I/SProxy_mtpd( 3042): Stop VPN daemon: mtpd

D/SProxy_mtpd( 3042): mtpd is stopped after 0 msec

D/SProxy_mtpd( 3042): stopping mtpd, success? true

I/SProxy_racoon( 3042): Stop VPN daemon: racoon

D/SProxy_racoon( 3042): racoon is stopped after 0 msec

D/SProxy_racoon( 3042): stopping racoon, success? true

D/VpnService( 3042): onFinalCleanUp()

I/VpnService( 3042): restore original suffices --> null

D/VpnSettings( 456): received connectivity: Us: connected? IDLE err=101

D/dalvikvm( 3042): GC freed 1547 objects / 77904 bytes in 81ms

I/wpa_supplicant( 487): CTRL-EVENT-STATE-CHANGE id=0 state=6

V/WifiMonitor( 103): Event [CTRL-EVENT-STATE-CHANGE id=0 state=6]

V/WifiStateTracker( 103): Changing supplicant state: COMPLETED ==> GROUP_HANDSH

AKE

I/wpa_supplicant( 487): WPA: Group rekeying completed with 00:21:27:3d:37:76 [G

TK=TKIP]

I/wpa_supplicant( 487): CTRL-EVENT-STATE-CHANGE id=0 state=7

V/WifiMonitor( 103): Event [WPA: Group rekeying completed with 00:21:27:3d:37:7

6 [GTK=TKIP]]

V/WifiMonitor( 103): Event [CTRL-EVENT-STATE-CHANGE id=0 state=7]

V/WifiStateTracker( 103): Changing supplicant state: GROUP_HANDSHAKE ==> COMPLE

TED

i think maybe the problerm is:F/mtpd ( 3098): Socket() Address family not supported by protocol.

wish you can solve this problerm.br.