Bug 4904

Summary: route add command ends with error
Product: Busybox Reporter: McSty <matteo.callegaro>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.19.x   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description McSty 2012-03-12 21:43:00 UTC
only the first call to route ends correctly, the subsequent call ends with error.

My all problem is described at http://code.google.com/p/android-openvpn-installer/issues/detail?id=2#c74

This is an extract from OpenVPN log:

Mon Mar 12 00:24:29 2012 Peer Connection Initiated with MY_ROUTER_IP:1194
Mon Mar 12 00:24:39 2012 /system/xbin/route add -net MY_ROUTER_IP netmask 255.255.255.255 gw MY_CARRIER_GW
Mon Mar 12 00:24:39 2012 /system/xbin/route add -net 0.0.0.0 netmask 128.0.0.0 gw MY_ROUTER_IP
Mon Mar 12 00:24:39 2012 ERROR: Linux route add command failed: external program exited with error status: 1
Mon Mar 12 00:24:39 2012 /system/xbin/route add -net 128.0.0.0 netmask 128.0.0.0 gw MY_ROUTER_IP
Mon Mar 12 00:24:39 2012 ERROR: Linux route add command failed: external program exited with error status: 1
Mon Mar 12 00:24:39 2012 MANAGEMENT: >STATE:1331508279,ADD_ROUTES,,,
Mon Mar 12 00:24:39 2012 /system/xbin/route add -net 192.168.0.0 netmask 255.255.255.0 gw MY_ROUTER_IP
Mon Mar 12 00:24:39 2012 ERROR: Linux route add command failed: external program exited with error status: 1
Mon Mar 12 00:24:39 2012 Initialization Sequence Completed

Could you check and fix it, please?

Thank you
McSty