Lines Matching refs:action

183 WARN_UNUSED_RESULT int sendNetlinkRequest(uint16_t action, uint16_t flags, iovec* iov, int iovlen) {  in sendNetlinkRequest()  argument
185 .nlmsg_type = action, in sendNetlinkRequest()
257 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument
287 .action = static_cast<uint8_t>(priority != RULE_PRIORITY_UNREACHABLE ? FR_ACT_TO_TBL : in modifyIpRule()
296 if (table == RT_TABLE_UNSPEC && rule.action == FR_ACT_TO_TBL && action != RTM_DELRULE) { in modifyIpRule()
327 uint16_t flags = (action == RTM_NEWRULE) ? NETLINK_CREATE_REQUEST_FLAGS : NETLINK_REQUEST_FLAGS; in modifyIpRule()
330 if (int ret = sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov))) { in modifyIpRule()
338 WARN_UNUSED_RESULT int modifyIpRule(uint16_t action, uint32_t priority, uint32_t table, in modifyIpRule() argument
340 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule()
346 WARN_UNUSED_RESULT int modifyIpRoute(uint16_t action, uint32_t table, const char* interface, in modifyIpRoute() argument
427 uint16_t flags = (action == RTM_NEWROUTE) ? NETLINK_CREATE_REQUEST_FLAGS : in modifyIpRoute()
429 return sendNetlinkRequest(action, flags, iov, ARRAY_SIZE(iov)); in modifyIpRoute()
601 WARN_UNUSED_RESULT int modifyVpnFallthroughRule(uint16_t action, unsigned vpnNetId, in modifyVpnFallthroughRule() argument
621 return modifyIpRule(action, RULE_PRIORITY_VPN_FALLTHROUGH, table, fwmark.intValue, in modifyVpnFallthroughRule()
795 WARN_UNUSED_RESULT int modifyDefaultNetwork(uint16_t action, const char* interface, in modifyDefaultNetwork() argument
811 return modifyIpRule(action, RULE_PRIORITY_DEFAULT_NETWORK, table, fwmark.intValue, in modifyDefaultNetwork()
815 WARN_UNUSED_RESULT int modifyTetheredNetwork(uint16_t action, const char* inputInterface, in modifyTetheredNetwork() argument
822 return modifyIpRule(action, RULE_PRIORITY_TETHERING, table, MARK_UNSET, MARK_UNSET, in modifyTetheredNetwork()
846 WARN_UNUSED_RESULT int modifyRoute(uint16_t action, const char* interface, const char* destination, in modifyRoute() argument
871 int ret = modifyIpRoute(action, table, interface, destination, nexthop); in modifyRoute()
873 if (ret && !(action == RTM_NEWROUTE && ret == -EEXIST)) { in modifyRoute()