Wireshark works on all major operating system. To download and install it, visit: http://www.wireshark.org/download.html
dpkt is a Python library which can be used for fast packet creation/parsing.
To install dpkt, make sure that you have a working installation of Python. To check if you have Python installed, run:
python3 --version
To install dpkt, run the following command:
python3 -m pip install dpkt
Read and learn more about dpkt here: https://dpkt.readthedocs.io/en/latest/index.html