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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

The 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.

本文标签: