]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/netapi.git/commitdiff
Remove subtraction of MAC trailer from the packet len being sent for DPI
authorTinku Mannan <tmannan@ti.com>
Tue, 16 Sep 2014 18:23:59 +0000 (14:23 -0400)
committerTinku Mannan <tmannan@ti.com>
Tue, 16 Sep 2014 18:23:59 +0000 (14:23 -0400)
ti/runtime/netapi/demo/src/transport_dpi_demo.c

index 08f1f3e47693bd0b41a089debed1915cb69587b9..cb938fcb4592784f728f255817289d98cb097dd5 100755 (executable)
@@ -996,7 +996,7 @@ for(i=0;i<n_pkts;i++)
             memcpy((unsigned char *)&last_header[0],p_pkt,32);
             memcpy((unsigned char*)&last_desc[0],tip,64);
         }
-        len = Pktlib_getPacketLen(tip)-4;//real length, subtract mac trailer
+        len = Pktlib_getPacketLen(tip);//real length, subtract mac trailer
         stats.rx+=1;
         //printf("recv_cb_bridge: appId: 0x%x, out_port: %d\n", appid, out_port);
         if (appid == NETAPI_NETCP_MATCH_GENERIC_MAC)
@@ -1012,7 +1012,7 @@ for(i=0;i<n_pkts;i++)
     
  //printf("recv_cb_bridge: coreId: %d, outPort %d\n", coreid, out_port);
         //Pktlib_freePacket(tip);
-        send_it(tip,len+4,out_port);
+       send_it(tip,len,out_port);
 }
 t2=netapi_timing_start();
 ct2 =Osal_cache_op_measure(&n_c_ops);