]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/blobdiff - ti/runtime/netapi/src/netapi_sec.c
Multi-proc support in NETAPI changes
[keystone-rtos/netapi.git] / ti / runtime / netapi / src / netapi_sec.c
index d9ee3193a163d8e38ff715ff9b8f1a77ea535625..ceec93e3a2cd84379c69036d00ce77e3be86bab7 100755 (executable)
@@ -125,7 +125,7 @@ NETCP_CFG_SA_T netapi_secAddSA(NETAPI_T h,
 
     if (inflow_mode & NETAPI_SEC_SA_INFLOW)
     {
-        pTransInfo = netapip_getFreeTransInfo((NETAPI_GLOBAL_T *) n->global, &trans_id);
+        pTransInfo = netapip_getFreeTransInfo((NETAPI_PROC_GLOBAL_T *) n->proc_global, &trans_id);
         if (!pTransInfo)
         {
             *perr =  NETAPI_ERR_BUSY;
@@ -347,7 +347,7 @@ static void netapi_secDelSA_internal(NETAPI_T h,
     if(handle_inflow)
     {
     /* get a transaction id */
-        pTransInfo = netapip_getFreeTransInfo((NETAPI_GLOBAL_T *) n->global, &trans_id);
+        pTransInfo = netapip_getFreeTransInfo((NETAPI_PROC_GLOBAL_T *) n->proc_global, &trans_id);
         if (!pTransInfo)
         {
             *perr =  NETAPI_ERR_BUSY;
@@ -487,7 +487,7 @@ NETCP_CFG_IPSEC_POLICY_T netapi_secAddRxPolicy(NETAPI_T h,
     }
 
     /* get a transaction id */
-    pTransInfo = netapip_getFreeTransInfo((NETAPI_GLOBAL_T *) n->global, &trans_id);
+    pTransInfo = netapip_getFreeTransInfo((NETAPI_PROC_GLOBAL_T *) n->proc_global, &trans_id);
     if (!pTransInfo)
     {
         *perr =  NETAPI_ERR_BUSY;
@@ -592,7 +592,7 @@ static void netapi_secDelRxPolicy_internal(NETAPI_T h,
     *perr =0;
 
     /* get a transaction id */
-    pTransInfo = netapip_getFreeTransInfo((NETAPI_GLOBAL_T *) n->global, &trans_id);
+    pTransInfo = netapip_getFreeTransInfo((NETAPI_PROC_GLOBAL_T *) n->proc_global, &trans_id);
     if (!pTransInfo)
     {
         *perr =  NETAPI_ERR_BUSY;