Fix for SDOCM00101269: call netapi_netcpCfgException with action to discard packets...
authorTinku Mannan <tmannan@ti.com>
Mon, 13 May 2013 15:14:38 +0000 (11:14 -0400)
committerTinku Mannan <tmannan@ti.com>
Mon, 13 May 2013 15:14:38 +0000 (11:14 -0400)
ti/runtime/netapi/src/netapi.c

index 0c1af342cf9097e44d7d63d0e8829702a3442371..21cd90c2309902b9c3b15e9d1ca9d2ca53ff6c3c 100755 (executable)
@@ -226,6 +226,11 @@ void netapi_shutdown(NETAPI_T h)
         netapi_closeHeap(h, netapi_get_global()->nwal_context.pa2sa_heap); 
         netapi_closeHeap(h, netapi_get_global()->nwal_context.sa2pa_heap); 
 
         netapi_closeHeap(h, netapi_get_global()->nwal_context.pa2sa_heap); 
         netapi_closeHeap(h, netapi_get_global()->nwal_context.sa2pa_heap); 
 
+    /* Un-configure rules for execption packet handling */
+    netapi_netcpCfgExceptions(p,
+                              NETCP_CFG_ALL_EXCEPTIONS,
+                              NETCP_CFG_ACTION_DISCARD,
+                              (NETCP_CFG_ROUTE_HANDLE_T) NULL);
         //loop over registered heaps
         for(i=0;i<TUNE_NETAPI_MAX_HEAPS;i++)
         {
         //loop over registered heaps
         for(i=0;i<TUNE_NETAPI_MAX_HEAPS;i++)
         {