Libpcap and WinPcap provide that packet capture capabilities that are central to Wireshark’s core functionality.
If this library isn’t already installed or available as a package for your platform, you can get it at http://www.tcpdump.org/.
You can get the “Windows packet capture library” at: https://www.winpcap.org/install/