OSDN Git Service

Use native netlink code instead of /sbin/ip to manipulate routes
authorLorenzo Colitti <lorenzo@google.com>
Tue, 17 Jun 2014 15:22:17 +0000 (00:22 +0900)
committerLorenzo Colitti <lorenzo@google.com>
Mon, 23 Jun 2014 07:00:08 +0000 (16:00 +0900)
commitba25df989b48f36b784ad39307a49a4fd9c3fd66
tree96995bf97188c9d8e884cecd59e7478ca2d2e17f
parentbd0f224f077264f21fa858b7a93062e3b8564006
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
server/NetdConstants.cpp
server/NetdConstants.h
server/RouteController.cpp