Fix builtin tcp client
[vpp.git] / src / vnet / tcp / builtin_client.h
index 6403030..756b3d1 100644 (file)
 
 typedef struct
 {
-  u32 bytes_to_send;
-  u32 bytes_sent;
-  u32 bytes_to_receive;
-  u32 bytes_received;
+  u64 bytes_to_send;
+  u64 bytes_sent;
+  u64 bytes_to_receive;
+  u64 bytes_received;
 
   svm_fifo_t *server_rx_fifo;
   svm_fifo_t *server_tx_fifo;
 
-  u32 vpp_session_index;
-  u32 vpp_session_thread;
+  u64 vpp_session_handle;
 } session_t;
 
 typedef struct
@@ -98,7 +97,7 @@ typedef struct
   int n_iterations;
 
   /* Bytes to send */
-  u32 bytes_to_send;
+  u64 bytes_to_send;
 
   u32 configured_segment_size;
 
@@ -107,9 +106,13 @@ typedef struct
 
   u8 *connect_test_data;
   pthread_t client_thread_handle;
-  u32 client_bytes_received;
+  u64 client_bytes_received;
   u8 test_return_packets;
 
+  u8 is_init;
+
+  u32 node_index;
+
   /* convenience */
   vlib_main_t *vlib_main;
   vnet_main_t *vnet_main;