Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通读一个 tcp 转储文件并打印出数据包长度及其开始和结束时间或只是时间戳。我知道 pcap 库可以做到这一点。但是我找不到打开转储文件并针对该信息进行处理的具体示例。我可以接受任何语言和平台。
你想要 pcap_open_offline()。有一个手册页,这里有一个使用它的例子。