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.
我想在 C 程序中访问分析的数据包层信息(tshark 做得很好)。
是否有用于 tshark 的库接口,可用于从 pcap 文件的数据包中收集分析信息?
PS:高层语言对我来说不是一个选择。我让它与 pyshark (Python) 一起工作,但对我的需要来说太慢了(pyshark 调用 tshark 命令行并处理响应 json)。我需要一种直接将 tshark 输出到我的 C 程序的方法。
如果我正确理解了这个问题,您可能会为此需要libpcap。