Lines Matching refs:RTM_NEWRULE
335 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_CREATE_REQUEST_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule()
480 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OUTPUT_TO_LOCAL, in modifyVpnOutputToLocalRule()
509 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue, in modifyVpnUidRangeRule()
531 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, priority, table, fwmark.intValue, in modifyVpnSystemPermissionRule()
557 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_EXPLICIT_NETWORK, table, in modifyExplicitNetworkRule()
577 if (int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_VPN_OVERRIDE_OIF, in modifyOutputInterfaceRules()
584 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_OUTPUT_INTERFACE, table, in modifyOutputInterfaceRules()
607 return modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, RULE_PRIORITY_IMPLICIT_NETWORK, table, in modifyImplicitNetworkRule()
649 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_SYSTEM, ROUTE_TABLE_LEGACY_SYSTEM, in addLegacyRouteRules()
653 if (int ret = modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LEGACY_NETWORK, in addLegacyRouteRules()
662 return modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_VPN_OVERRIDE_SYSTEM, ROUTE_TABLE_LEGACY_SYSTEM, in addLegacyRouteRules()
679 return modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_LOCAL_NETWORK, ROUTE_TABLE_LOCAL_NETWORK, in addLocalNetworkRules()
730 return modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_DIRECTLY_CONNECTED, RT_TABLE_MAIN, in addDirectlyConnectedRule()
739 return modifyIpRule(RTM_NEWRULE, RULE_PRIORITY_UNREACHABLE, FR_ACT_UNREACHABLE, RT_TABLE_UNSPEC, in addUnreachableRule()
779 if (int ret = modifyIpRule(add ? RTM_NEWRULE : RTM_DELRULE, in modifyRejectNonSecureNetworkRule()
1088 return modifyDefaultNetwork(RTM_NEWRULE, interface, permission); in addInterfaceToDefaultNetwork()
1107 return modifyTetheredNetwork(RTM_NEWRULE, inputInterface, outputInterface); in enableTethering()
1116 return modifyVpnFallthroughRule(RTM_NEWRULE, vpnNetId, physicalInterface, permission); in addVirtualNetworkFallthrough()