sdaubert / packetgen

Ruby library to easily generate and capture network packets
MIT License
97 stars 11 forks source link

capture packets from array of interfaces #119

Open bobfly opened 1 year ago

bobfly commented 1 year ago

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 commented 1 year ago

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.