Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vadimszzz opened this issue Nov 29, 2021 · 2 comments
Open

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

vadimszzz opened this issue Nov 29, 2021 · 2 comments

Comments

@vadimszzz
Copy link

vadimszzz commented Nov 29, 2021

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

@vadimszzz
Copy link
Author

vadimszzz commented Nov 29, 2021

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

@vadimszzz
Copy link
Author

vadimszzz commented Nov 29, 2021

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?

@vadimszzz vadimszzz reopened this Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant