packetgen icon indicating copy to clipboard operation
packetgen copied to clipboard

capture packets from array of interfaces

Open bobfly opened this issue 2 years ago • 1 comments

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

bobfly avatar Oct 19 '22 13:10 bobfly

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.

sdaubert avatar Oct 21 '22 16:10 sdaubert