summaryrefslogtreecommitdiff
path: root/ipacm
AgeCommit message (Collapse)Author
2022-04-19Deleted clang property in Android.bp files am: 716f7062c9 am: 02f3dd65e8 am: ↵t_frc_odp_330442040t_frc_odp_330442000t_frc_ase_330444010android13-frc-odp-releaseandroid13-devAlix
ceab353cd2 Original change: https://android-review.googlesource.com/c/platform/hardware/qcom/sm8150/data/ipacfg-mgr/+/2066709 Change-Id: I45ae729660747a43787d2127d7e0d79c066b1f81 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-18Deleted clang property in Android.bp filesAlix
Deleted deprecated clang property in Android.bp files using bpmodify. Bug: 208980553 Test: treehugger Change-Id: Ib692084b9fb4984d380963d2156546bbb91b4b0d
2022-03-08Merge remote-tracking branch 'goog/qcom/release/LA.UM.9.1.C11.11.00.00.841.184'Wilson Sung
Conflicts: ipacm/inc/IPACM_Netlink.h ipacm/src/ipacm.rc Bug: 210577927 Change-Id: If2d41154f89cc49bc89267e3eea4de5cfc25e754
2021-08-30ipacm: Declare ipa_flt_rule_add var as static to fix stack size issuePooja Kumari
In LOW RAM target ipacm is crashing due to stack size limitation. Declare ipa_flt_rule_add structure var as static to fix stack size issue. Change-Id: I1d70d6e9c2b5249b5e2b9956dbc49b170c43d698
2021-07-27ipacm: Remove compilation dependency for in_addr_t on bionicPraveen Kurapati
Add changes to avoid compilation dependency with in_addr_t. Change-Id: I31f85385ce87e584bfb07b78b1c4eb32c7e9742a
2021-07-07ipacm: Start ipacm after post-fs-dataAshok Vuyyuru
We may run into issues if we start the ipacm in post-fs due data folder was not mounted. Adding changes to start ipacm in post-fs-data. Change-Id: I28e003a8630d56efb198dda0144434da3dcfba77
2021-07-02ipacm: Add checks to prevent installing duplicate MHI exception rulesMichael Adisumarta
Check the MHI exception rule handles before installing the rules. If they are nonzero, they they should be deleted first before installing again. Change-Id: I59ad4381ed3424677467efa094ecce61219d69e6
2021-05-24Merge remote-tracking branch ↵android-12.0.0_r32android-12.0.0_r29android-12.0.0_r28android-12.0.0_r27android-12.0.0_r26android-12.0.0_r21android-12.0.0_r20android-12.0.0_r19android-12.0.0_r18android-12.0.0_r16android12-qpr1-releaseandroid12-qpr1-d-s3-releaseandroid12-qpr1-d-s2-releaseandroid12-qpr1-d-s1-releaseandroid12-qpr1-d-releaseandroid12-devWilson Sung
'goog/qcom/release/LA.UM.9.1.C11.11.00.00.841.013' into sc-dev Bug: 188781413 Change-Id: I952940e51d1b127472a65b827d82ded0f8c350ed
2021-05-22ipacm: Adding changes to use right check while checking version supportAshok Vuyyuru
Using defined flag support removed in latest branch. So adding changes to use right check when using the version check. Change-Id: Ia832ce763156e07fc5475e4de4d11522b2fe732c
2021-04-26Merge "ipacm: Adding changes to disable Eth Bridging Support"qctecmdr
2021-04-16ipacm: Adding changes to disable Eth Bridging SupportAshok Vuyyuru
In Yupik target it won't support ETH Bridging commands So disabling this feature. Change-Id: I32fc56718b92927dc18eb2d35388a46a228507b0
2021-04-01Merge "data-ipa-cfg-mgr: ipacm: Avoid multiple updates to tether client count"qctecmdr
2021-03-25ipacm: Add correct ihl_offset eq bitmap on MTU rules HW < IPA3.0Michael Adisumarta
Change the MTU rule to use the correct equation bitmap to specify ihl_offset_range16 on IPA version older than 3.0 Change-Id: I615534cf76d673ef929ca415b2b905d5119100f8
2021-03-25data-ipa-cfg-mgr: ipacm: Avoid multiple updates to tether client countAkshay Pandit
Avoid incrementing number of tethered clients twice when xlat is enabled. For WLAN if wan is up prior to DOWNSTREAM_ADD, number of tethered clients is incremented twice. Due to current andorid limitation, andorid won't support 2nd tethered interface. Hence, handle_uplink_filter_rule is not processed due to incorrect counter. Change-Id: I5419434158248139cd936e3873506f7ae706f231
2021-02-05[LSC] Add LOCAL_LICENSE_KINDS to hardware/qcom/sm8150/data/ipacfg-mgrandroid-s-preview-1Bob Badour
Added SPDX-license-identifier-BSD to: Android.bp hal/Android.bp ipacm/Android.bp ipanat/Android.bp ipanat/test/Android.mk Bug: 68860345 Bug: 151177513 Bug: 151953481 Test: m all Exempt-From-Owner-Approval: janitorial work Change-Id: I88fa075c859f49a06d8a6c0d79d20ad17e4279a4
2021-01-21Merge "ipacm: Fix to add dummy NAT entries for tunneled connections"qctecmdr
2020-12-22ipacm: make changes to store offload stateChaitanya Pratapa
Make changes to store offload state in a file. Change-Id: I5cbeacd2849bcdac043941d9bd491eaa62364fbc
2020-12-10ipacm: add null pointer checks in LanToLan instanceChaitanya Pratapa
Make changes to add null pointer checks in LanToLan instance to avoid any potential ipacm issues. Change-Id: I7331bf3e9b2d777872b6dfc03fa811d2a2925d8d
2020-12-09Merge "IPACM: fix the MHI icmpv6 exception rule"qctecmdr
2020-12-08ipacm: add stringify for coalesce and mtu eventsMichael Adisumarta
Add stringify for these new events so CMD_queue will print the right events for ipacm logs. Change-Id: I5061b328bbf5f0af47b96450b501102f92701c46 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-12-08IPACM: fix the MHI icmpv6 exception ruleMichael Adisumarta
Clean the icmp v6 rule when backhaul type is ipv6. Change-Id: I5b158f5cbfb6846fc21a9556462c23a0d0f7b2d2
2020-11-06Merge "ipacm: support the mac renew with same IPv4"qctecmdr
2020-11-04ipacm: support the mac renew with same IPv4Michael Adisumarta
Add the support on IPACM to clean up old header routing rules associated with old mac after new_neighbor comign from kernel and re-construct header/routing rules for WIFI STA scenario. Change-Id: I8fa08dedbeb3127d8974529ecb82dc7c0ea0d54a
2020-11-04ipacm: fix the rt rule blowup issueSkylar Chang
For backhaul keeping down and up, seeing v4/v6 routing rules are not cleam up and resulted in routing tbl blow-up in ipa-hw. Made the fix to clean up routing rules accordingly. Change-Id: Iadbb0841d7f1d0eb9944e029b79a04cb4503a496
2020-10-30ipacm: add dynamic support for IPA new MTU eventsMichael Adisumarta
Handle new MTU events to replace modem PDN MTU for WANv4/v6 and replace the MTU rules if they are already installed. Change-Id: I06c16db2300ccd572a99ab316d413fcbf9197986 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-10-26ipacm: Fix to add dummy NAT entries for tunneled connectionsChaitanya Pratapa
When tunneling is enabled from the device, same NAT entry will be translate from Public to tunneled IP and then to Private IP. In case we try to add the entry to HW, HW ends up translating it to Private IP and connection fails. Make change to add dummy NAT entries for tunneled connections. Change-Id: I340189e2a0db71dd04316a704116e045d6622063
2020-10-08ipacm: increment num_tethered_client properly in case of XLATPooja Kumari
Currently in case of XLAT if ADD_DOWNSTREAM event comes before XLAT_CONNECT event then num_offload_v4_tethered_iface is not incremented and it will have incorrect value. Increment num_offload_v4_tethered_iface var if XLAT comes after downstream is up. Change-Id: I79814a526b1112d7004fa1959a519475c02fe834
2020-10-02ipacm: add mechanism to cache ct eventsChaitanya Pratapa
1) Current logic is to get the conntrack dump first time when tethering is enabled. 2) Once we have the conntrack handles, add mechanism to cache CT events when upstream is not set. 3) Also make changes to reset the socket receive timeout to 0 so that nfct_catch doesn't return EAGAIN. And add check to retry when we receive EILSEQ. Change-Id: I37877c19f11abd3fdb9f7f6c96933a592e6a1490
2020-09-18Merge "ipacm: Fix MTU rule modify and add"qctecmdr
2020-09-17ipacm: Print flt rules that fail mdfy_flt_ruleMichael Adisumarta
Move the individual flt rule status check outside the IOCTl fail check to seperate the rules that failed when IPACM sends more than one rule. Change-Id: I4a2c51374bbedced687e23041104a1bc33627c55 Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-09-17ipacm: Fix MTU rule modify and addMichael Adisumarta
Reset the rt table handle every time we modify a new rule. Add brackets to if else conditions that were always getting hit. Change-Id: Iebca2ee3cdf4713285e6bedc151e428fd99d2f5c Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-09-10ipacm: Fix reading the conntrack dumpChaitanya Pratapa
Framework uses UDP fd to query for the conntrack dump. Make changes to use UDP fd to read the conntrack dump. Also read using the fd provided from framework and not using dup fd. Change-Id: Iaeecfc0c4763325314d8f763797bd1fc7124e4db
2020-08-26ipacm: delete WAN iface if rx tx property is NULLPooja Kumari
Delete Wan iface instance if rx tx property of the interface is NULL. Change-Id: Ib0ab2619fd5ae3596558007ab2d44a601fa73093
2020-08-25Merge "ipacm: using same-process HAL"qctecmdr
2020-08-24ipacm: using same-process HALPooja Kumari
Create same process HAL to avoid double registrations Change-Id: I47fb46b727d0c66006f65a06586c11e4c42c3ea9
2020-08-09ipacm: Fix to ignore ENOMSG error from nfct_catchChaitanya Pratapa
ENOMSG is returned when the conntrack message received has a non zero pid value. Idea is to handle only messages coming from Kernel which has 0 pid value. Change-Id: Ib1934c82595b980016e98646f34797f9001c51ab
2020-07-02ipacm: keep track of flt rule handles that are in useMichael Adisumarta
Initialize an array to keep track which filtering handles are in use to prevent a wraparound issue where we have 2 rules with the same ID leading to a problem with rule deletion. Change-Id: I940c043f486860a1a694ad3b3a183cae44d1057e Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
2020-06-25Merge "ipacm: V6 filter count mismatch causing udp failures"qctecmdr
2020-06-23ipacm: V6 filter count mismatch causing udp failuresSivakanth Reddy Vaka
Invalid filter count being passed to modem to install DL filter rules which is creating dummy rules in filter table and udp packets are not matching to any filters Change-Id: I0f2a0dab4b1afea62eda63b4518e6592ff8be53b
2020-06-24ipacm: Remove IPV6 TCP SYN/FIN/RST rulesArmaan Siddiqui
Remove IPV6 TCP SYN/FIN/RST default filter rule to free the memory as we already add default rt-rule Change-Id: Ief0d0eedffce2b60162e6f2b63ba44c3c7e4817c
2020-06-18ipacm : Add change to avoid null ptr dereference issuesSivakanth vaka
Add null ptr check to avoid dereferencing issues. Change-Id: I0ead7ae6f3ecb684383f26580afc9e96f2b4b131
2020-06-09Merge "ipacm: provide mechanism to provide upstream interface name"qctecmdr
2020-06-02ipacm : Add change to update NAT entries for embedded/tethered connectionsArmaan Siddiqui
Add change to read and process conntrack entries only when WAN is up and add NAT entries accordingly when switch to tethered connections. Change-Id: Iaa31a44684082802c03402cdd1faa393a7bc85f8
2020-05-21ipacm: provide mechanism to provide upstream interface nameChaitanya Pratapa
Make changes to provide upstream interface name to netmgr whenever tethering is enabled. Change-Id: Id0cb3d0e34c1b324785da12f49c4f8502adabc6b
2020-05-10ipacm: Fix resetting NAT ifaces for WLAN interfaceChaitanya Pratapa
Starting from HST and HSP, WLAN doesn't restart when Q6 is restarting. So there is no need to resetting the NAT ifaces for Q6 SSR. Make a change to skip posting IPA_SSR_NOTICE to WLAN iface. Change-Id: I32fc1528d67912a7e90d716cc51378c64d50ba70
2020-05-01Merge "ipacm: add support for diag logging"qctecmdr
2020-04-29ipacm: add support for diag loggingChaitanya Pratapa
Add changes to enable DEBUG flag to enable ipacm-diag logging. Change-Id: I15e75c41a8a3096c41167c0194bbbb39e861056f
2020-04-29Merge remote-tracking branch ↵ChengYou Ho
'goog/qcom/release/LA.UM.9.1.R1.10.00.00.604.035' into rvc-dev Conflicts: hal/Android.mk ipacm/src/Android.mk Bug: 152368391 Change-Id: I6bce716a03b7d9ac6f6fe09f0a2335caa39c88b8
2020-04-16Merge remote-tracking branch ↵ChengYou Ho
'goog/qcom/release/LA.UM.9.1.R1.10.00.00.604.030' into rvc-dev Conflicts: ipacm/src/Android.mk Bug: 152368391 Change-Id: Ic3575f8eeebeace340d61f8f8d78f2d1a4ebeb09
2020-04-06ipacm: Fix installing ipv6 coalescing rulesChaitanya Pratapa
Make changes to ensure index is not going out of bounds when installing ipv6 coalescing rules. Change-Id: Ib35964152e71dd129431e5eece9629b69defe86d