*/
if (phdr->presence_flags & WTAP_HAS_TS) {
if (nstime_is_unset(&block_start)) {
- block_start.secs = phdr->ts.secs;
- block_start.nsecs = phdr->ts.nsecs;
+ block_start = phdr->ts;
}
if (secs_per_block > 0) {
nstime_t current;
nstime_t delta;
- current.secs = phdr->ts.secs;
- current.nsecs = phdr->ts.nsecs;
+ current = phdr->ts;
nstime_delta(&delta, ¤t, &previous_time);
phdr = &temp_phdr;
}
}
- previous_time.secs = phdr->ts.secs;
- previous_time.nsecs = phdr->ts.nsecs;
+ previous_time = phdr->ts;
}
/* assume that if the frame's tv_sec is 0, then
"Connection establish request (SYN): server port %u", tcph->th_dport);
/* Save the server port to help determine dissector used */
tcpd->server_port = tcph->th_dport;
- tcpd->ts_mru_syn.secs = pinfo->abs_ts.secs;
- tcpd->ts_mru_syn.nsecs = pinfo->abs_ts.nsecs;
+ tcpd->ts_mru_syn = pinfo->abs_ts;
}
}
if(tcph->th_flags & TH_FIN) {