• Home
  • Raw
  • Download

Lines Matching refs:netId

66     unsigned netId;  in createOemNetwork()  local
69 int ret = gCtls->netCtrl.createPhysicalOemNetwork(permission, &netId); in createOemNetwork()
72 fwmark.netId = netId; in createOemNetwork()
76 _hidl_cb(netIdToNetHandle(netId), fwmark.intValue, toHalStatus(ret)); in createOemNetwork()
82 #define RETURN_IF_NOT_OEM_NETWORK(netId) \ argument
83 if (((netId) < NetworkController::MIN_OEM_ID) || \
84 ((netId) > NetworkController::MAX_OEM_ID)) { \
89 unsigned netId = netHandleToNetId(netHandle); in destroyOemNetwork() local
90 RETURN_IF_NOT_OEM_NETWORK(netId); in destroyOemNetwork()
92 return toHalStatus(gCtls->netCtrl.destroyNetwork(netId)); in destroyOemNetwork()
107 unsigned netId = netHandleToNetId(networkHandle); in addRouteToOemNetwork() local
108 RETURN_IF_NOT_OEM_NETWORK(netId); in addRouteToOemNetwork()
110 return toHalStatus(gCtls->netCtrl.addRoute(netId, ifname.c_str(), destination.c_str(), in addRouteToOemNetwork()
118 unsigned netId = netHandleToNetId(networkHandle); in removeRouteFromOemNetwork() local
119 RETURN_IF_NOT_OEM_NETWORK(netId); in removeRouteFromOemNetwork()
121 return toHalStatus(gCtls->netCtrl.removeRoute(netId, ifname.c_str(), destination.c_str(), in removeRouteFromOemNetwork()
127 unsigned netId = netHandleToNetId(networkHandle); in addInterfaceToOemNetwork() local
128 RETURN_IF_NOT_OEM_NETWORK(netId); in addInterfaceToOemNetwork()
130 return toHalStatus(gCtls->netCtrl.addInterfaceToNetwork(netId, ifname.c_str())); in addInterfaceToOemNetwork()
135 unsigned netId = netHandleToNetId(networkHandle); in removeInterfaceFromOemNetwork() local
136 RETURN_IF_NOT_OEM_NETWORK(netId); in removeInterfaceFromOemNetwork()
138 return toHalStatus(gCtls->netCtrl.removeInterfaceFromNetwork(netId, ifname.c_str())); in removeInterfaceFromOemNetwork()