lemontree55 / packetgen

Ruby library to easily generate and capture network packets
MIT License
98 stars 13 forks source link

capture packets from array of interfaces #119

Closed bobfly closed 3 months ago

bobfly commented 2 years 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 2 years 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.