index 6917a259bca7d40ec13a2e02b03b39404698b774..80fbc547cb5496a51226f467d06a1fd13edcb760 100755 (executable)
0,
NULL,
NULL,
-0//* to be filled in
+0,
+0,
+0,
+1
};
Pktlib_HeapCfg heapCfg;
long t1, t2 ;
cpu_set_t cpu_set;
+ NETCP_CFG_ROUTE_T test_route;
//install signal handler for ^c
//now creaate a simple netcp rule
//to get a lot of packets
+memset(&test_route, 0, sizeof(NETCP_CFG_ROUTE_T));
+test_route.valid_params = NETCP_CFG_VALID_PARAM_MATCH_ACTION_DEST;
+test_route.match_destination = NETCP_CFG_ACTION_TO_SW;
+test_route.routeType = 0;
+test_route.p_flow = NULL;
+test_route.p_dest_q = NULL;
+
netapi_netcpCfgCreateMacInterface(
netapi_handle,
&all_mac[0],
NULL,
0,0,
- (NETCP_CFG_ROUTE_HANDLE_T) NULL,
+ (NETCP_CFG_ROUTE_HANDLE_T) &test_route,
(NETCP_CFG_VLAN_T ) NULL , //future
0,
1,