• Home
  • Raw
  • Download

Lines Matching defs:ret

285     if (int ret = padInterfaceName(iif, iifName, &iifLength, &iifPadding)) {  in modifyIpRule()  local
288 if (int ret = padInterfaceName(oif, oifName, &oifLength, &oifPadding)) { in modifyIpRule() local
343 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr)) { in modifyIpRule() local
465 int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov), nullptr); in modifyIpRoute() local
609 if (const int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_LOCAL_NETWORK, in modifyLocalNetworkRule() local
643 if (int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OVERRIDE_OIF, in modifyOutputInterfaceRules() local
700 if (int ret = modifyRoute(RTM_NEWROUTE, NETLINK_ROUTE_CREATE_FLAGS, interface, in addFixedLocalRoutes() local
745 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_SYSTEM, ROUTE_TABLE_LEGACY_SYSTEM, in addLegacyRouteRules() local
749 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_NETWORK, in addLegacyRouteRules() local
764 if (int ret = modifyExplicitNetworkRule(localNetId, ROUTE_TABLE_LOCAL_NETWORK, PERMISSION_NONE, in addLocalNetworkRules() local
790 int ret = ifc_up(interface); in configureDummyNetwork() local
827 if (int ret = modifyIncomingPacketMark(netId, interface, PERMISSION_NONE, add)) { in modifyLocalNetwork() local
897 if (int ret = modifyUidNetworkRule(netId, table, range.start, range.stop, subPriority, in modifyPhysicalNetwork() local
901 if (int ret = modifyUidNetworkRule(netId, table, range.start, range.stop, subPriority, in modifyPhysicalNetwork() local
908 if (int ret = modifyUidDefaultNetworkRule(table, range.start, range.stop, in modifyPhysicalNetwork() local
916 if (int ret = modifyUidLocalNetworkRule(interface, range.start, range.stop, add)) { in modifyPhysicalNetwork() local
928 if (int ret = modifyIncomingPacketMark(netId, interface, permission, add)) { in modifyPhysicalNetwork() local
931 if (int ret = modifyExplicitNetworkRule(netId, table, permission, INVALID_UID, INVALID_UID, in modifyPhysicalNetwork() local
936 if (const int ret = modifyLocalNetworkRule(table, add)) { in modifyPhysicalNetwork() local
940 if (int ret = modifyOutputInterfaceRules(interface, table, permission, INVALID_UID, INVALID_UID, in modifyPhysicalNetwork() local
1052 if (int ret = modifyUidUnreachableRule(netId, range.start, range.stop, subPriority, add, in modifyUnreachableNetwork() local
1056 if (int ret = modifyUidUnreachableRule(netId, range.start, range.stop, subPriority, add, in modifyUnreachableNetwork() local
1060 if (int ret = modifyUidDefaultUnreachableRule(range.start, range.stop, subPriority, in modifyUnreachableNetwork() local
1077 if (int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_PROHIBIT_NON_VPN, in modifyRejectNonSecureNetworkRule() local
1097 if (int ret = modifyVpnUidRangeRule(table, range.start, range.stop, subPriority, secure, in modifyVirtualNetwork() local
1101 if (int ret = modifyExplicitNetworkRule(netId, table, PERMISSION_NONE, range.start, in modifyVirtualNetwork() local
1105 if (int ret = modifyOutputInterfaceRules(interface, table, PERMISSION_NONE, range.start, in modifyVirtualNetwork() local
1113 if (int ret = modifyIncomingPacketMark(netId, interface, PERMISSION_NONE, add)) { in modifyVirtualNetwork() local
1116 if (int ret = modifyVpnOutputToLocalRule(interface, add)) { in modifyVirtualNetwork() local
1119 if (int ret = in modifyVirtualNetwork() local
1189 int ret = modifyIpRoute(action, flags, table, interface, destination, nexthop, mtu, priority); in modifyRoute() local
1214 if (int ret = tcQdiscAddDevClsact(ifindex)) { in maybeModifyQdiscClsact() local
1219 if (int ret = tcQdiscDelDevClsact(ifindex)) { in maybeModifyQdiscClsact() local
1229 int ret = 0; in clearTetheringRules() local
1272 int ret = flushRoutes(interface, true); in flushRoutes() local
1286 int ret = flushRoutes(table); in flushRoutes() local
1299 if (int ret = flushRules()) { in Init() local
1302 if (int ret = addLegacyRouteRules()) { in Init() local
1305 if (int ret = addLocalNetworkRules(localNetId)) { in Init() local
1308 if (int ret = addUnreachableRule()) { in Init() local
1319 if (int ret = modifyLocalNetwork(netId, interface, ACTION_ADD)) { in addInterfaceToLocalNetwork() local
1328 if (int ret = modifyLocalNetwork(netId, interface, ACTION_DEL)) { in removeInterfaceFromLocalNetwork() local
1339 if (int ret = modifyPhysicalNetwork(netId, interface, uidRangeMap, permission, ACTION_ADD, in addInterfaceToPhysicalNetwork() local
1347 if (int ret = addFixedLocalRoutes(interface)) { in addInterfaceToPhysicalNetwork() local
1358 if (int ret = modifyPhysicalNetwork(netId, interface, uidRangeMap, permission, ACTION_DEL, in removeInterfaceFromPhysicalNetwork() local
1363 if (int ret = flushRoutes(interface)) { in removeInterfaceFromPhysicalNetwork() local
1367 if (int ret = clearTetheringRules(interface)) { in removeInterfaceFromPhysicalNetwork() local
1379 if (int ret = modifyVirtualNetwork(netId, interface, uidRangeMap, secure, ACTION_ADD, in addInterfaceToVirtualNetwork() local
1390 if (int ret = modifyVirtualNetwork(netId, interface, uidRangeMap, secure, ACTION_DEL, in removeInterfaceFromVirtualNetwork() local
1394 if (int ret = flushRoutes(interface)) { in removeInterfaceFromVirtualNetwork() local
1408 if (int ret = modifyPhysicalNetwork(netId, interface, emptyUidRangeMap, newPermission, in modifyPhysicalNetworkPermission() local
1468 if (int ret = modifyRoute(RTM_NEWROUTE, NETLINK_ROUTE_CREATE_FLAGS, interface, destination, in addRoute() local
1483 if (int ret = modifyRoute(RTM_DELROUTE, NETLINK_REQUEST_FLAGS, interface, destination, nexthop, in removeRoute() local
1497 if (int ret = modifyRoute(RTM_NEWROUTE, NETLINK_ROUTE_REPLACE_FLAGS, interface, destination, in updateRoute() local
1519 if (int ret = modifyVpnFallthroughRule(RTM_NEWRULE, vpnNetId, physicalInterface, permission)) { in addVirtualNetworkFallthrough() local
1529 if (int ret = modifyVpnFallthroughRule(RTM_DELRULE, vpnNetId, physicalInterface, permission)) { in removeVirtualNetworkFallthrough() local