diff options
author | Skylar Chang <chiaweic@codeaurora.org> | 2015-10-14 20:02:01 -0700 |
---|---|---|
committer | Skylar Chang <chiaweic@codeaurora.org> | 2015-10-14 20:02:01 -0700 |
commit | ff639a2c5d56d7967592d42fdd772e6b8395d00b (patch) | |
tree | 740737cf31f2f2fa3091c59cea8c2e7cef3ecddd /ipacm/src/IPACM_Iface.cpp | |
parent | 5cbcdf91d7817e8daef40beea174234932a7e032 (diff) | |
download | ipacfg-mgr-ff639a2c5d56d7967592d42fdd772e6b8395d00b.tar.gz |
IPACM: Routing/Filtering support for IPAv3
Add support for non-hashable/hashable routing and filtering rules.
Change-Id: I2495fc3ed7f779692071568625fdf841b2f0aeb6
Diffstat (limited to 'ipacm/src/IPACM_Iface.cpp')
-rw-r--r-- | ipacm/src/IPACM_Iface.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipacm/src/IPACM_Iface.cpp b/ipacm/src/IPACM_Iface.cpp index cbf1502..5dc7647 100644 --- a/ipacm/src/IPACM_Iface.cpp +++ b/ipacm/src/IPACM_Iface.cpp @@ -744,6 +744,10 @@ int IPACM_Iface::init_fl_rule(ipa_ip_type iptype) flt_rule_entry.flt_rule_hdl = -1; flt_rule_entry.status = -1; flt_rule_entry.rule.action = IPA_PASS_TO_EXCEPTION; +#ifdef FEATURE_IPA_V3 + flt_rule_entry.at_rear = false; + flt_rule_entry.rule.hashable = IPA_RULE_NON_HASHABLE; +#endif IPACMDBG_H("rx property attrib mask:0x%x\n", rx_prop->rx[0].attrib.attrib_mask); memcpy(&flt_rule_entry.rule.attrib, &rx_prop->rx[0].attrib, @@ -815,7 +819,6 @@ int IPACM_Iface::init_fl_rule(ipa_ip_type iptype) flt_rule_entry.flt_rule_hdl = -1; flt_rule_entry.status = -1; flt_rule_entry.rule.action = IPA_PASS_TO_EXCEPTION; - /* Configuring Multicast Filtering Rule */ memcpy(&flt_rule_entry.rule.attrib, &rx_prop->rx[0].attrib, @@ -865,7 +868,6 @@ int IPACM_Iface::init_fl_rule(ipa_ip_type iptype) flt_rule_entry.rule.to_uc = 0; flt_rule_entry.rule.action = IPA_PASS_TO_EXCEPTION; flt_rule_entry.rule.eq_attrib_type = 1; - flt_rule_entry.rule.eq_attrib.rule_eq_bitmap = 0; if(rx_prop->rx[0].attrib.attrib_mask & IPA_FLT_META_DATA) |