commit | ba25df989b48f36b784ad39307a49a4fd9c3fd66 | [log] [tgz] |
---|---|---|
author | Lorenzo Colitti <lorenzo@google.com> | Wed Jun 18 00:22:17 2014 +0900 |
committer | Lorenzo Colitti <lorenzo@google.com> | Mon Jun 23 16:00:08 2014 +0900 |
tree | 96995bf97188c9d8e884cecd59e7478ca2d2e17f | |
parent | bd0f224f077264f21fa858b7a93062e3b8564006 [diff] |
Use native netlink code instead of /sbin/ip to manipulate routes Shelling out to /sbin/ip is slow, and more importantly it does not preserve the error messages returned by the kernel when adding or deleting a route fails. Instead, use netlink directly. This change does not yet pass the errors back to CommandListener; that is done in the next change in the series. Change-Id: I5ad3c8583580857be6386a620ff5c4f3872d685b