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

capture packets from array of interfaces #119

Closed
bobfly opened this issue Oct 19, 2022 · 1 comment
Closed

capture packets from array of interfaces #119

bobfly opened this issue Oct 19, 2022 · 1 comment

Comments

@bobfly
Copy link

bobfly commented Oct 19, 2022

Is there a way to capture from multiple interfaces since iface param is string?
https://github.com/sdaubert/packetgen/blob/master/lib/packetgen/capture.rb#L30

@sdaubert
Copy link
Contributor

Hi @bobfly, thank you for your interest about Packetgen.

There is no way to capture packets from multiple selected interfaces, as the underlying library (PcapRUB) does not handle it. Nevertheless, a string any passed as interface argument enables capturing on all interfaces on Linux since kernel 2.2.

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

3 participants