karpierz / pcap-ct

Python wrapper for the pcap library.
BSD 3-Clause "New" or "Revised" License
19 stars 4 forks source link

added datalink to pcap class #12

Closed dev8-de closed 2 years ago

dev8-de commented 2 years ago

If you want to capture packets from any device and need to know on which device the packet is captured, you need to set the datalink to DLT_LINUX_SLL2.

This is a patch for this.

karpierz commented 2 years ago

Thank you for your patch!

karpierz commented 2 years ago

@easy-easy : Pypi package is also now available: https://pypi.org/project/pcap-ct/1.3.0b1/