Skip to content

Commit

Permalink
change header&hash data type. was: real,double is: log,longint
Browse files Browse the repository at this point in the history
  • Loading branch information
victorbesy committed Jun 13, 2018
1 parent 03939a5 commit 76ccdf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/dpi/src/shunt_dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,8 @@ int shunt_dpi_recv_string(int sockid,int size,char** string) {
//--------------------
// HandShake(hs) send/recv
//--------------------
double shunt_dpi_hash(const char *str) {
double Result_;
long shunt_dpi_hash(const char *str) {
long Result_;
Result_ = shunt_prim_hash(str);
return Result_;
}
Expand All @@ -356,7 +356,7 @@ int shunt_dpi_send_header (int sockid,cs_header* h){
return Result_;
}

int shunt_dpi_send_data_header (int sockid,cs_header* h,double data_type,svOpenArrayHandle trnx_payload_sizes) {
int shunt_dpi_send_data_header (int sockid,cs_header* h,long data_type,svOpenArrayHandle trnx_payload_sizes) {
cs_data_header h_data_;
int Result_ =0;

Expand All @@ -374,7 +374,7 @@ int shunt_dpi_recv_header (int sockid,cs_header* h){
return Result_;
}

int shunt_dpi_recv_data_header (int sockid,cs_header* h,double* data_type,svOpenArrayHandle** trnx_payload_sizes) {
int shunt_dpi_recv_data_header (int sockid,cs_header* h,long* data_type,svOpenArrayHandle** trnx_payload_sizes) {
int Result_;
cs_data_header h_data;
int n_payloads;
Expand Down

0 comments on commit 76ccdf6

Please sign in to comment.