SuperCowPowers/chains

Add reading live-updating .pcap file as it's getting updated.

vadimszzz opened this issue · 2 comments

I have .pcap file that is updating. I want to parse it like a stream.

Found packet_streamer.PacketStreamer(iface_name="file.pcap")

Does packet_streamer.PacketStreamer("liveupdating.pcap") works as I expect?

def read_interface(self):
"""Read Packets from the packet capture interface"""
# Spin up the packet capture
if self._iface_is_file():
self.pcap = pcapy.open_offline(self.iface_name)

- One time reading or live?