case 152: /* flowStartMilliseconds: 64-bit integer */
offset_s[rev] = offset;
- ts_start[rev].secs = tvb_get_ntoh64(tvb, offset)/1000;
+ ts_start[rev].secs = (time_t)(tvb_get_ntoh64(tvb, offset)/1000);
ts_start[rev].nsecs = (int)(tvb_get_ntoh64(tvb, offset)%1000) * 1000000;
goto timestamp_common;
break;
case 153: /* flowEndMilliseconds; 64-bit integer */
offset_e[rev] = offset;
- ts_end[rev].secs = (tvb_get_ntoh64(tvb, offset)/1000);
+ ts_end[rev].secs = (time_t)(tvb_get_ntoh64(tvb, offset)/1000);
ts_end[rev].nsecs = (int)(tvb_get_ntoh64(tvb, offset)%1000) * 1000000;
goto timestamp_common;
break;
/* XXX: Not tested ... */
offset_s[rev] = offset;
usec = tvb_get_ntohl(tvb, offset);
- ts_start[rev].secs = (((guint64)(hdrinfo_p->export_time_secs)*1000000 - usec) / 1000000);
+ ts_start[rev].secs = (time_t)(((guint64)(hdrinfo_p->export_time_secs)*1000000 - usec) / 1000000);
ts_start[rev].nsecs = (int)(((guint64)(hdrinfo_p->export_time_secs)*1000000 - usec) % 1000000) * 1000;
goto timestamp_common;
break;
/* XXX: Not tested ... */
offset_e[rev] = offset;
usec = tvb_get_ntohl(tvb, offset);
- ts_end[rev].secs = (((guint64)(hdrinfo_p->export_time_secs)*1000000 - usec) / 1000000);
+ ts_end[rev].secs = (time_t)(((guint64)(hdrinfo_p->export_time_secs)*1000000 - usec) / 1000000);
ts_end[rev].nsecs = (int)(((guint64)(hdrinfo_p->export_time_secs)*1000000 - usec) % 1000000) * 1000;
/* This code executed for all timestamp fields above */
break;
case 160: /* systemInitTimeMilliseconds */
- ts.secs = (tvb_get_ntoh64(tvb, offset)/1000);
+ ts.secs = (time_t)(tvb_get_ntoh64(tvb, offset)/1000);
ts.nsecs = (int)(tvb_get_ntoh64(tvb, offset)%1000) *1000000;
ti = proto_tree_add_time(pdutree,
hf_cflow_sys_init_time,
break;
case 258: /* collectionTimeMilliseconds */
- ts.secs = (tvb_get_ntoh64(tvb, offset)/1000);
+ ts.secs = (time_t)(tvb_get_ntoh64(tvb, offset)/1000);
ts.nsecs = (int)(tvb_get_ntoh64(tvb, offset)%1000) *1000000;
ti = proto_tree_add_time(pdutree,
hf_cflow_collection_time_milliseconds,
break;
case 269: /* maxFlowEndMilliseconds */
- ts.secs = (tvb_get_ntoh64(tvb, offset)/1000);
+ ts.secs = (time_t)(tvb_get_ntoh64(tvb, offset)/1000);
ts.nsecs = (int)(tvb_get_ntoh64(tvb, offset)%1000) * 1000000;
ti = proto_tree_add_time(pdutree, hf_cflow_max_flow_end_milliseconds,
tvb, offset, length, &ts);
break;
case 323: /* observationTimeMilliseconds */
- ts.secs = (tvb_get_ntoh64(tvb, offset)/1000);
+ ts.secs = (time_t)(tvb_get_ntoh64(tvb, offset)/1000);
ts.nsecs = (int)(tvb_get_ntoh64(tvb, offset)%1000) * 1000000;
ti = proto_tree_add_time(pdutree, hf_cflow_observation_time_milliseconds,
tvb, offset, length, &ts);