#!/usr/bin/env ruby require 'packetgen' packets = PacketGen.capture(iface: 'axp', filter: 'icmp', max: 2) p packets