Hi
Could someone please suggest how can we do rule based routing on android? I'm using multiple interfaces on android (so multiiple possible source ips) and I want packets with different source ip to have different defaul gw. On linux it can be done as follows: create an entry for new table in rt_tables file add a route to this table: ip route add default via xx.xx.xx.xx dev eth0 table new_table and add rule that directs to this table in certain scenario: ip rule add from xx.xx.xx.xx table new_table however android allows me to do the first step and gives no error in second step. But the route is not added to new_table and instead added to default table. If default table already contains a default route (which it mostly does) an attempt is made to add default route to it which fails with error "File exists". I know that ip route add command does read the table name because if i give a table name that is not in rt_tables file, it gives error. But if i give a valid table name, route is not added to it. could u please suggest how i can add route to my new_table so i can make rules based on it. Thanks Tarun -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

