#118 Incorrect capture duration reported

已关闭
carlos.garcia6 年之前创建 · 2 条评论

After finishing analyzing and storing the statistics of the pcap file in 1, the reported duration is wrong. The reported statistics are:

PCAP FILE STATISTICS SUMMARY  ------------------------------
Total packet count:     78329145 packets
Recognized packets:     78329145 packets
Unrecognized packets:   0 PDUs
% Recognized packets:   100.0 %
% Unrecognized packets: 0.0 %
Last unknown PDU:       None
Capture duration:       0.4295 seconds
------------------------------------------------------------

Examining the database in query mode, we can see:

SELECT timestampLastPacket FROM file_statistics;
Query returned 1 record:

+----------------------------+
| timestampLastPacket        |
+----------------------------+
| 2018-04-04 07:15:00.331786 |
+----------------------------+
> SELECT timestampFirstPacket FROM file_statistics;
Query returned 1 record:

+----------------------------+
| timestampFirstPacket       |
+----------------------------+
| 2018-04-04 07:00:00.448274 |
+----------------------------+
After finishing analyzing and storing the statistics of the pcap file in [1], the reported duration is wrong. The reported statistics are: ``` PCAP FILE STATISTICS SUMMARY ------------------------------ Total packet count: 78329145 packets Recognized packets: 78329145 packets Unrecognized packets: 0 PDUs % Recognized packets: 100.0 % % Unrecognized packets: 0.0 % Last unknown PDU: None Capture duration: 0.4295 seconds ------------------------------------------------------------ ``` Examining the database in query mode, we can see: ``` SELECT timestampLastPacket FROM file_statistics; Query returned 1 record: +----------------------------+ | timestampLastPacket | +----------------------------+ | 2018-04-04 07:15:00.331786 | +----------------------------+ > SELECT timestampFirstPacket FROM file_statistics; Query returned 1 record: +----------------------------+ | timestampFirstPacket | +----------------------------+ | 2018-04-04 07:00:00.448274 | +----------------------------+ ``` [1]:http://www.fukuda-lab.org/mawilab/v1.1/2018/04/04/20180404.html
Jens Keim 评论于 6 年之前
协作者

Fixed. Merge into master coming with SMBScan fixes.

Fixed. Merge into master coming with SMBScan fixes.
Jens Keim 在代码提交 6 年之前 中引用了该工单
Jens Keim 在代码提交 6 年之前 中引用了该工单
Jens Keim 评论于 6 年之前
协作者

Fixed in commit 971df14819.

EDIT: Off-by-one-second error fixed in pull request #131.

Fixed in commit 971df14819410f7f0e351a6dbca9c5ac588af058. EDIT: Off-by-one-second error fixed in pull request #131.
登录 并参与到对话中。
未选择标签
Bug
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。