pcap core capabilities overview
mainThe pcap crate provides the following core functionalities:
- List network devices
- Open capture handles on devices or savefiles
- Retrieve packets from capture handles
- Filter packets using BPF (Berkeley Packet Filter) programs
- List, set, and get datalink link types
- Configure parameters like promiscuity and buffer length
- Write packets to savefiles
- Inject packets into an interface