aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-07-10 19:59:39 +0000
committerGuy Harris <guy@alum.mit.edu>2012-07-10 19:59:39 +0000
commitd419e7e30c66deed7d763c7ac7d0e91a8a49090f (patch)
tree90177e1c62a25f1ad9ffba68d2d76d7e4d1339b7 /wiretap/file_access.c
parentfb095f288f34179dd5c9b9fade6dbe63cc5befff (diff)
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
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 20153c4bb2..27fc2e3f2c 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -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;