Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 69) sorted by relevance

123

/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_ConntrackListener.cpp702 nat_table_entry *rule, bool *isTempEntry) in AddIface() argument
711 if (rule->private_ip == IPACM_Wan::getWANIP()) in AddIface()
714 rule->private_ip); in AddIface()
724 if (rule->private_ip == nat_iface_ipv4_addr[cnt] || in AddIface()
725 rule->target_ip == nat_iface_ipv4_addr[cnt]) in AddIface()
743 if (rule->private_ip == nonnat_iface_ipv4_addr[cnt] || in AddIface()
744 rule->target_ip == nonnat_iface_ipv4_addr[cnt]) in AddIface()
750 rule->private_ip = rule->public_ip; in AddIface()
751 rule->private_port = rule->public_port; in AddIface()
771 if (pConfig->isPrivateSubnet(rule->private_ip) || in AddIface()
[all …]
DIPACM_Conntrack_NATApp.cpp234 bool NatApp::ChkForDup(const nat_table_entry *rule) in ChkForDup() argument
241 if(cache[cnt].private_ip == rule->private_ip && in ChkForDup()
242 cache[cnt].target_ip == rule->target_ip && in ChkForDup()
243 cache[cnt].private_port == rule->private_port && in ChkForDup()
244 cache[cnt].target_port == rule->target_port && in ChkForDup()
245 cache[cnt].protocol == rule->protocol) in ChkForDup()
247 log_nat(rule->protocol,rule->private_ip,rule->target_ip,rule->private_port,\ in ChkForDup()
248 rule->target_port,"Duplicate Rule\n"); in ChkForDup()
257 int NatApp::DeleteEntry(const nat_table_entry *rule) in DeleteEntry() argument
262 log_nat(rule->protocol,rule->private_ip,rule->target_ip,rule->private_port,\ in DeleteEntry()
[all …]
DIPACM_Wan.cpp262 rt_rule_entry->rule.hdr_hdl = hdr.hdl; in handle_addr_evt()
267 rt_rule_entry->rule.dst = IPA_CLIENT_APPS_WAN_CONS; in handle_addr_evt()
271 rt_rule_entry->rule.dst = IPA_CLIENT_APPS_LAN_CONS; in handle_addr_evt()
273 rt_rule_entry->rule.attrib.attrib_mask = IPA_FLT_DST_ADDR; in handle_addr_evt()
274 rt_rule_entry->rule.attrib.u.v6.dst_addr[0] = data->ipv6_addr[0]; in handle_addr_evt()
275 rt_rule_entry->rule.attrib.u.v6.dst_addr[1] = data->ipv6_addr[1]; in handle_addr_evt()
276 rt_rule_entry->rule.attrib.u.v6.dst_addr[2] = data->ipv6_addr[2]; in handle_addr_evt()
277 rt_rule_entry->rule.attrib.u.v6.dst_addr[3] = data->ipv6_addr[3]; in handle_addr_evt()
278 rt_rule_entry->rule.attrib.u.v6.dst_addr_mask[0] = 0xFFFFFFFF; in handle_addr_evt()
279 rt_rule_entry->rule.attrib.u.v6.dst_addr_mask[1] = 0xFFFFFFFF; in handle_addr_evt()
[all …]
DIPACM_Iface.cpp135 flt_rule_entry.rule.action = IPA_PASS_TO_EXCEPTION; in handle_software_routing_enable()
137 flt_rule_entry.rule.hashable = true; in handle_software_routing_enable()
139 memcpy(&flt_rule_entry.rule.attrib, in handle_software_routing_enable()
141 sizeof(flt_rule_entry.rule.attrib)); in handle_software_routing_enable()
701 flt_rule_entry.rule.retain_hdr = 1; in init_fl_rule()
705 flt_rule_entry.rule.action = IPA_PASS_TO_EXCEPTION; in init_fl_rule()
708 flt_rule_entry.rule.hashable = false; in init_fl_rule()
711 memcpy(&flt_rule_entry.rule.attrib, in init_fl_rule()
713 sizeof(flt_rule_entry.rule.attrib)); in init_fl_rule()
715 flt_rule_entry.rule.attrib.attrib_mask |= IPA_FLT_FRAGMENT; in init_fl_rule()
[all …]
DIPACM_Lan.cpp1167 rt_rule_entry->rule.dst = IPA_CLIENT_APPS_LAN_CONS; //go to A5 in handle_addr_evt()
1168 rt_rule_entry->rule.attrib.attrib_mask = IPA_FLT_DST_ADDR; in handle_addr_evt()
1170 rt_rule_entry->rule.attrib.u.v4.dst_addr = data->ipv4_addr; in handle_addr_evt()
1171 rt_rule_entry->rule.attrib.u.v4.dst_addr_mask = 0xFFFFFFFF; in handle_addr_evt()
1173 rt_rule_entry->rule.hashable = true; in handle_addr_evt()
1230 rt_rule_entry->rule.dst = IPA_CLIENT_APPS_LAN_CONS; //go to A5 in handle_addr_evt()
1231 rt_rule_entry->rule.attrib.attrib_mask = IPA_FLT_DST_ADDR; in handle_addr_evt()
1232 rt_rule_entry->rule.attrib.u.v6.dst_addr[0] = data->ipv6_addr[0]; in handle_addr_evt()
1233 rt_rule_entry->rule.attrib.u.v6.dst_addr[1] = data->ipv6_addr[1]; in handle_addr_evt()
1234 rt_rule_entry->rule.attrib.u.v6.dst_addr[2] = data->ipv6_addr[2]; in handle_addr_evt()
[all …]
DIPACM_Filtering.cpp84 ruleTable->rules[cnt].rule.attrib.attrib_mask); in AddFilteringRule()
318 …sg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].rule.action); in AddWanDLFilteringRule()
320 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
324 &rule_table_v4->rules[cnt].rule.eq_attrib, in AddWanDLFilteringRule()
343 …sg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v6->rules[cnt].rule.action); in AddWanDLFilteringRule()
345 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v6->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
349 &rule_table_v6->rules[cnt].rule.eq_attrib, in AddWanDLFilteringRule()
400 …filter_spec_ex_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].rule.action); in AddWanDLFilteringRule()
402 …qmi_rule_ex_msg.filter_spec_ex_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl… in AddWanDLFilteringRule()
405 qmi_rule_ex_msg.filter_spec_ex_list[pos].rule_id = rule_table_v4->rules[cnt].rule.rule_id; in AddWanDLFilteringRule()
[all …]
DIPACM_Wlan.cpp1411 rt_rule_entry->rule.dst = tx_prop->tx[tx_index].alt_dst_pipe; in handle_wlan_client_route_rule()
1415 rt_rule_entry->rule.dst = tx_prop->tx[tx_index].dst_pipe; in handle_wlan_client_route_rule()
1418 memcpy(&rt_rule_entry->rule.attrib, in handle_wlan_client_route_rule()
1420 sizeof(rt_rule_entry->rule.attrib)); in handle_wlan_client_route_rule()
1421 rt_rule_entry->rule.attrib.attrib_mask |= IPA_FLT_DST_ADDR; in handle_wlan_client_route_rule()
1422 rt_rule_entry->rule.hdr_hdl = get_client_memptr(wlan_client, wlan_index)->hdr_hdl_v4; in handle_wlan_client_route_rule()
1423 rt_rule_entry->rule.attrib.u.v4.dst_addr = get_client_memptr(wlan_client, wlan_index)->v4_addr; in handle_wlan_client_route_rule()
1424 rt_rule_entry->rule.attrib.u.v4.dst_addr_mask = 0xFFFFFFFF; in handle_wlan_client_route_rule()
1426 rt_rule_entry->rule.hashable = false; in handle_wlan_client_route_rule()
1455 rt_rule_entry->rule.dst = iface_query->excp_pipe; in handle_wlan_client_route_rule()
[all …]
DIPACM_Routing.cpp87 if(ruleTable->rules[cnt].rule.dst > IPA_CLIENT_MAX) in AddRoutingRule()
89 IPACMERR("Invalid dst pipe, Rule:%d dst_pipe:%d\n", cnt, ruleTable->rules[cnt].rule.dst); in AddRoutingRule()
108 IPACMDBG("Rule:%d dst_pipe:%d\n", cnt, ruleTable->rules[cnt].rule.dst); in AddRoutingRule()
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Conntrack_NATApp.cpp311 bool NatApp::ChkForDup(const nat_table_entry *rule) in ChkForDup() argument
318 if(cache[cnt].private_ip == rule->private_ip && in ChkForDup()
319 cache[cnt].target_ip == rule->target_ip && in ChkForDup()
320 cache[cnt].private_port == rule->private_port && in ChkForDup()
321 cache[cnt].target_port == rule->target_port && in ChkForDup()
322 cache[cnt].protocol == rule->protocol) in ChkForDup()
324 log_nat(rule->protocol,rule->private_ip,rule->target_ip,rule->private_port,\ in ChkForDup()
325 rule->target_port,"Duplicate Rule\n"); in ChkForDup()
334 int NatApp::DeleteEntry(const nat_table_entry *rule) in DeleteEntry() argument
340 log_nat(rule->protocol,rule->private_ip,rule->target_ip,rule->private_port,\ in DeleteEntry()
[all …]
DIPACM_ConntrackListener.cpp716 nat_table_entry *rule, bool *isTempEntry) in AddIface() argument
725 if (rule->private_ip == IPACM_Wan::getWANIP()) in AddIface()
728 rule->private_ip); in AddIface()
738 if (rule->private_ip == nat_iface_ipv4_addr[cnt] || in AddIface()
739 rule->target_ip == nat_iface_ipv4_addr[cnt]) in AddIface()
757 if (rule->private_ip == nonnat_iface_ipv4_addr[cnt] || in AddIface()
758 rule->target_ip == nonnat_iface_ipv4_addr[cnt]) in AddIface()
764 rule->private_ip = rule->public_ip; in AddIface()
765 rule->private_port = rule->public_port; in AddIface()
785 if (pConfig->isPrivateSubnet(rule->private_ip) || in AddIface()
[all …]
DIPACM_Wan.cpp341 rt_rule_entry->rule.attrib.attrib_mask = IPA_FLT_DST_ADDR; in handle_addr_evt()
342 rt_rule_entry->rule.attrib.u.v6.dst_addr[0] = data->ipv6_addr[0]; in handle_addr_evt()
343 rt_rule_entry->rule.attrib.u.v6.dst_addr[1] = data->ipv6_addr[1]; in handle_addr_evt()
344 rt_rule_entry->rule.attrib.u.v6.dst_addr[2] = data->ipv6_addr[2]; in handle_addr_evt()
345 rt_rule_entry->rule.attrib.u.v6.dst_addr[3] = data->ipv6_addr[3]; in handle_addr_evt()
346 rt_rule_entry->rule.attrib.u.v6.dst_addr_mask[0] = 0xFFFFFFFF; in handle_addr_evt()
347 rt_rule_entry->rule.attrib.u.v6.dst_addr_mask[1] = 0xFFFFFFFF; in handle_addr_evt()
348 rt_rule_entry->rule.attrib.u.v6.dst_addr_mask[2] = 0xFFFFFFFF; in handle_addr_evt()
349 rt_rule_entry->rule.attrib.u.v6.dst_addr_mask[3] = 0xFFFFFFFF; in handle_addr_evt()
355 rt_rule_entry->rule.hashable = false; in handle_addr_evt()
[all …]
DIPACM_Filtering.cpp88 ruleTable->rules[cnt].rule.attrib.attrib_mask); in AddFilteringRule()
162 flt_rule_entry.rule.retain_hdr = ruleTable->rules[cnt].rule.retain_hdr; in AddFilteringRule_hw_index()
163 flt_rule_entry.rule.to_uc = ruleTable->rules[cnt].rule.to_uc; in AddFilteringRule_hw_index()
164 flt_rule_entry.rule.action = ruleTable->rules[cnt].rule.action; in AddFilteringRule_hw_index()
165 flt_rule_entry.rule.rt_tbl_hdl = ruleTable->rules[cnt].rule.rt_tbl_hdl; in AddFilteringRule_hw_index()
166 flt_rule_entry.rule.rt_tbl_idx = ruleTable->rules[cnt].rule.rt_tbl_idx; in AddFilteringRule_hw_index()
167 flt_rule_entry.rule.eq_attrib_type = ruleTable->rules[cnt].rule.eq_attrib_type; in AddFilteringRule_hw_index()
168 flt_rule_entry.rule.max_prio = ruleTable->rules[cnt].rule.max_prio; in AddFilteringRule_hw_index()
169 flt_rule_entry.rule.hashable = ruleTable->rules[cnt].rule.hashable; in AddFilteringRule_hw_index()
170 flt_rule_entry.rule.rule_id = ruleTable->rules[cnt].rule.rule_id; in AddFilteringRule_hw_index()
[all …]
DIPACM_Lan.cpp1385 rt_rule_entry->rule.dst = IPA_CLIENT_APPS_LAN_CONS; //go to A5 in handle_addr_evt()
1386 rt_rule_entry->rule.attrib.attrib_mask = IPA_FLT_DST_ADDR; in handle_addr_evt()
1388 rt_rule_entry->rule.attrib.u.v4.dst_addr = data->ipv4_addr; in handle_addr_evt()
1389 rt_rule_entry->rule.attrib.u.v4.dst_addr_mask = 0xFFFFFFFF; in handle_addr_evt()
1391 rt_rule_entry->rule.hashable = true; in handle_addr_evt()
1453 rt_rule_entry->rule.dst = IPA_CLIENT_APPS_LAN_CONS; //go to A5 in handle_addr_evt()
1454 rt_rule_entry->rule.attrib.attrib_mask = IPA_FLT_DST_ADDR; in handle_addr_evt()
1455 rt_rule_entry->rule.attrib.u.v6.dst_addr[0] = data->ipv6_addr[0]; in handle_addr_evt()
1456 rt_rule_entry->rule.attrib.u.v6.dst_addr[1] = data->ipv6_addr[1]; in handle_addr_evt()
1457 rt_rule_entry->rule.attrib.u.v6.dst_addr[2] = data->ipv6_addr[2]; in handle_addr_evt()
[all …]
DIPACM_Routing.cpp87 if(ruleTable->rules[cnt].rule.dst > IPA_CLIENT_MAX) in AddRoutingRule()
89 IPACMERR("Invalid dst pipe, Rule:%d dst_pipe:%d\n", cnt, ruleTable->rules[cnt].rule.dst); in AddRoutingRule()
108 IPACMDBG("Rule:%d dst_pipe:%d\n", cnt, ruleTable->rules[cnt].rule.dst); in AddRoutingRule()
157 rt_rule_entry.rule.dst = ruleTable->rules[cnt].rule.dst; in AddRoutingRule_hw_index()
158 rt_rule_entry.rule.hdr_hdl = ruleTable->rules[cnt].rule.hdr_hdl; in AddRoutingRule_hw_index()
159 rt_rule_entry.rule.hdr_proc_ctx_hdl = ruleTable->rules[cnt].rule.hdr_proc_ctx_hdl; in AddRoutingRule_hw_index()
160 rt_rule_entry.rule.max_prio = ruleTable->rules[cnt].rule.max_prio; in AddRoutingRule_hw_index()
161 rt_rule_entry.rule.hashable = ruleTable->rules[cnt].rule.hashable; in AddRoutingRule_hw_index()
162 rt_rule_entry.rule.retain_hdr = ruleTable->rules[cnt].rule.retain_hdr; in AddRoutingRule_hw_index()
163 rt_rule_entry.rule.coalesce = ruleTable->rules[cnt].rule.coalesce; in AddRoutingRule_hw_index()
[all …]
DIPACM_Iface.cpp135 flt_rule_entry.rule.action = IPA_PASS_TO_EXCEPTION; in handle_software_routing_enable()
137 flt_rule_entry.rule.hashable = true; in handle_software_routing_enable()
138 memcpy(&flt_rule_entry.rule.attrib, in handle_software_routing_enable()
140 sizeof(flt_rule_entry.rule.attrib)); in handle_software_routing_enable()
161 memcpy(&flt_eq.attrib, &flt_rule_entry.rule.attrib, sizeof(flt_eq.attrib)); in handle_software_routing_enable()
171 memcpy(&flt_rule_entry.rule.eq_attrib, in handle_software_routing_enable()
173 sizeof(flt_rule_entry.rule.eq_attrib)); in handle_software_routing_enable()
212 memcpy(&flt_eq.attrib, &flt_rule_entry.rule.attrib, sizeof(flt_eq.attrib)); in handle_software_routing_enable()
221 memcpy(&flt_rule_entry.rule.eq_attrib, in handle_software_routing_enable()
223 sizeof(flt_rule_entry.rule.eq_attrib)); in handle_software_routing_enable()
[all …]
DIPACM_Wlan.cpp1568 rt_rule_entry->rule.dst = get_client_memptr(wlan_client, wlan_index)->wigig_ipa_client; in handle_wlan_client_route_rule()
1576 rt_rule_entry->rule.dst = tx_prop->tx[tx_index].alt_dst_pipe; in handle_wlan_client_route_rule()
1580 rt_rule_entry->rule.dst = tx_prop->tx[tx_index].dst_pipe; in handle_wlan_client_route_rule()
1584 memcpy(&rt_rule_entry->rule.attrib, in handle_wlan_client_route_rule()
1586 sizeof(rt_rule_entry->rule.attrib)); in handle_wlan_client_route_rule()
1587 rt_rule_entry->rule.attrib.attrib_mask |= IPA_FLT_DST_ADDR; in handle_wlan_client_route_rule()
1588 rt_rule_entry->rule.hdr_hdl = get_client_memptr(wlan_client, wlan_index)->hdr_hdl_v4; in handle_wlan_client_route_rule()
1589 rt_rule_entry->rule.attrib.u.v4.dst_addr = get_client_memptr(wlan_client, wlan_index)->v4_addr; in handle_wlan_client_route_rule()
1590 rt_rule_entry->rule.attrib.u.v4.dst_addr_mask = 0xFFFFFFFF; in handle_wlan_client_route_rule()
1594 rt_rule_entry->rule.hashable = true; in handle_wlan_client_route_rule()
[all …]
/hardware/interfaces/automotive/can/1.0/default/
DCanBus.cpp79 [](auto& rule) { rule.id &= rule.mask; }); in listen() argument
251 for (auto& rule : filter) { in match() local
252 const bool satisfied = ((id & rule.mask) == rule.id) && in match()
253 satisfiesFilterFlag(rule.rtr, isRtr) && in match()
254 satisfiesFilterFlag(rule.extendedFormat, isExtendedId); in match()
256 if (rule.exclude) { in match()
/hardware/interfaces/vibrator/aidl/default/example_java_client/
Djarjar.txt1 rule android.hardware.** example.vib.ah.@1
/hardware/qcom/data/ipacfg-mgr/msm8998/ipanat/inc/
Dipa_nat_drv.h86 const ipa_nat_ipv4_rule * rule,
Dipa_nat_drvi.h411 struct ipa_nat_sw_rule *rule,
432 struct ipa_nat_sw_rule *rule,
/hardware/qcom/sm8150/data/ipacfg-mgr/ipanat/inc/
Dipa_nat_drv.h102 const ipa_nat_ipv4_rule * rule,
/hardware/interfaces/radio/aidl/compat/libradiocompat/data/
Dstructs.cpp257 aidl::UrspRule toAidl(const V1_6::UrspRule& rule) { in toAidl() argument
259 .precedence = rule.precedence, in toAidl()
260 .trafficDescriptors = toAidl(rule.trafficDescriptors), in toAidl()
261 .routeSelectionDescriptor = toAidl(rule.routeSelectionDescriptor), in toAidl()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/inc/
DIPACM_ConntrackListener.h59 nat_table_entry *rule; member
/hardware/google/pixel-sepolicy/vibrator/cs40l26/
Dhal_vibrator_default.te20 ## TODO(b/248615564): Remove above rule after CHRE multiclient HAL is launched.
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/inc/
DIPACM_ConntrackListener.h62 nat_table_entry *rule; member

123