netd: Route MTU
- Route may include optional MTU parameter
- Change route is added so routes don't need to be deleted then re-added
- Add/Del/Change functions to pass route info as parcel
Bug: 142892223
Test: new unit tests
Change-Id: Idc32ecb0520b1f4136b3fe0e3f7b6800fb3005a6
diff --git a/server/NetdNativeService.h b/server/NetdNativeService.h
index 12dbd37..34d6215 100644
--- a/server/NetdNativeService.h
+++ b/server/NetdNativeService.h
@@ -76,6 +76,9 @@
const std::vector<UidRangeParcel>& uids) override;
binder::Status networkRejectNonSecureVpn(bool enable,
const std::vector<UidRangeParcel>& uids) override;
+ binder::Status networkAddRouteParcel(int32_t netId, const RouteInfoParcel& route) override;
+ binder::Status networkUpdateRouteParcel(int32_t netId, const RouteInfoParcel& route) override;
+ binder::Status networkRemoveRouteParcel(int32_t netId, const RouteInfoParcel& route) override;
binder::Status networkAddRoute(int32_t netId, const std::string& ifName,
const std::string& destination,
const std::string& nextHop) override;