forked from osmocom/wireshark
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>
This commit is contained in:
parent
a7a7c689bc
commit
caf06fea02
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue