Browse Source

siptrace: fix timestamp byte order

- swap timestamp byte order on big endian machines
Spencer Thomason 9 years ago
parent
commit
0eac280986
1 changed files with 2 additions and 2 deletions
  1. 2 2
      modules/siptrace/siptrace.c

+ 2 - 2
modules/siptrace/siptrace.c

@@ -1799,8 +1799,8 @@ static int trace_send_hep_duplicate(str *body, str *from, str *to, struct dest_i
 
 	if(hep_version == 2) {
 
-		hep_time.tv_sec = tvb.tv_sec;
-		hep_time.tv_usec = tvb.tv_usec;
+		hep_time.tv_sec = to_le(tvb.tv_sec);
+		hep_time.tv_usec = to_le(tvb.tv_usec);
 		hep_time.captid = hep_capture_id;
 
 		memcpy((void*)buffer+buflen, &hep_time, sizeof(struct hep_timehdr));