Set the time units per second correctly if, in wtap_dump_open_ng(),

we're making a fake interface description (it should match the time
stamp resolution).  The dump code for pcap-NG now requires the time
units per second value, as it needs to correctly compute the time stamp
value to write out in an EPB.

svn path=/trunk/; revision=43652
This commit is contained in:
Guy Harris 2012-07-10 19:59:39 +00:00
parent fb095f288f
commit d419e7e30c
1 changed files with 1 additions and 1 deletions

View File

@ -1117,7 +1117,7 @@ wtap_dumper* wtap_dump_open_ng(const char *filename, int filetype, int encap,
wtapng_if_descr_t descr;
descr.wtap_encap = encap;
descr.time_units_per_second = 0;
descr.time_units_per_second = 1000000; /* default microsecond resolution */
descr.link_type = wtap_wtap_encap_to_pcap_encap(encap);
descr.snap_len = snaplen;
descr.opt_comment = NULL;