Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unix 在tcpdump数据包捕获中查找时间戳_Unix_Tcl_Wireshark - Fatal编程技术网

Unix 在tcpdump数据包捕获中查找时间戳

Unix 在tcpdump数据包捕获中查找时间戳,unix,tcl,wireshark,Unix,Tcl,Wireshark,我需要验证两部手机之间的数据包,因为我已经使用以下命令收集了tcpdump:-tcpdump-s 65535-w filename.pcap 然后我通过命令将这个文件转换成文本文件:-tshark-V-r packetTB.pcap>asd.txt 但是在这个文本文件中,我看不到任何可用的时间戳,unix中是否有任何命令也可以获取时间戳,tshark命令中是否有任何方法可以按照Prabhu的回答获取时间戳,除非您使用的tshark版本有严重错误,应该有这样一句话 Arrival Time: Ma

我需要验证两部手机之间的数据包,因为我已经使用以下命令收集了tcpdump:-
tcpdump-s 65535-w filename.pcap

然后我通过命令将这个文件转换成文本文件:-
tshark-V-r packetTB.pcap>asd.txt


但是在这个文本文件中,我看不到任何可用的时间戳,unix中是否有任何命令也可以获取时间戳,tshark命令中是否有任何方法可以按照Prabhu的回答获取时间戳,除非您使用的tshark版本有严重错误,应该有这样一句话

Arrival Time: May 19, 1999 17:48:39.708517000 PDT
在tshark的输出中;那是时间戳

您还可以使用tcpdump获取时间戳


如果您只需要数据包中的一些字段,请尝试tshark的
-T fields
选项,使用
-e
标志指定所需字段的名称。例如,
frame.time
是时间戳字段。

您没有看到转换文本文件中的
Arrival time
吗?请详细说明如何获取准确的时间戳代码……如何编写?