admin管理员组文章数量:1244272
I am capturing the packets sent on an Infiniband network and manually writing them to a pcap file. The user is parsing the pcap file with pyshark. I'd like for the user to be able to know what interface the packets were sent on. Is there a way to write some specific data while staying within the boundaries of the pcap format?
I am capturing the packets sent on an Infiniband network and manually writing them to a pcap file. The user is parsing the pcap file with pyshark. I'd like for the user to be able to know what interface the packets were sent on. Is there a way to write some specific data while staying within the boundaries of the pcap format?
Share Improve this question asked Feb 16 at 8:09 Yaakov GoldsmithYaakov Goldsmith 32 bronze badges1 Answer
Reset to default 0The pcap file format has no place to include the exact network interface. pyshark though is a wrapper around tshark and can thus read the pcapng format which allows for many more information, including if_name
as the name of the device.
本文标签:
版权声明:本文标题:pyshark - Is there a way to add specific data to a pcap file that the program writes manually (using C)? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1740213589a2242454.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论