diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-26 08:39:04 -0700 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-06-26 15:43:16 +0000 |
commit | caf06fea02533c4231c8d24eb7524b0e240a1a88 (patch) | |
tree | 21a774dd4aafd3b547682f97276662089b6e2472 /ui/tap_export_pdu.c | |
parent | a7a7c689bcffd4dcf3e49e7095235b0a9c158731 (diff) |
PDU export: increase time precision to nano seconds
It will avoid losing precision in case of export from a nseclibpcap input file.
As Wireshark is probably the only tool able to read this link type, we do not need to bother with compatibility.
Change-Id: Iea5b5c88b02ff4799c255f795be2469a091161fe
Reviewed-on: https://code.wireshark.org/review/9171
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/tap_export_pdu.c')
-rw-r--r-- | ui/tap_export_pdu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tap_export_pdu.c b/ui/tap_export_pdu.c index c47f15367b..a2a03377c6 100644 --- a/ui/tap_export_pdu.c +++ b/ui/tap_export_pdu.c @@ -145,14 +145,14 @@ exp_pdu_file_open(exp_pdu_t *exp_pdu_tap_data) /* create the fake interface data */ int_data.wtap_encap = WTAP_ENCAP_WIRESHARK_UPPER_PDU; - int_data.time_units_per_second = 1000000; /* default microsecond resolution */ + int_data.time_units_per_second = 1000000000; /* default nanosecond resolution */ int_data.link_type = wtap_wtap_encap_to_pcap_encap(WTAP_ENCAP_WIRESHARK_UPPER_PDU); int_data.snap_len = WTAP_MAX_PACKET_SIZE; int_data.if_name = g_strdup("Fake IF, PDU->Export"); int_data.opt_comment = NULL; int_data.if_description = NULL; int_data.if_speed = 0; - int_data.if_tsresol = 6; + int_data.if_tsresol = 9; int_data.if_filter_str = NULL; int_data.bpf_filter_len = 0; int_data.if_filter_bpf_bytes = NULL; |