How to associate pcap.Interface with net.Interface?
Open
- Dominant language
- Go
- Stars
- 6.8k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
As mentioned in subject, I am trying to figure out which pcap.Interface represents which net.Interface
As I understand pcap.Interface is actually a hardware device, while net.Interface is a network connection (ie. a logical construct in Windows to control hardware device).
Is the only way to associate them together using IP Address? (suprisingly, pcap.Interface doesn't expose Hardware Address field)
I am looking for a better way to associate them together. Perhaps based on interface index? (couldn't find it in pcap.Interface)
Contributor guide
Assessment
This issue has not been assessed yet.