From: Eleanor McHugh Date: 2007-03-30T07:02:51+09:00 Subject: Re: Pcaplet 'lookupdev': no suitable device found On 29 Mar 2007, at 20:33, Mike Cook wrote: > I'm trying to prototype using Ruby for a networking class that I'm > taking, and I need to be able to use libpcap. I found 'pcaplet' and > have been trying to get set up with that, but when trying to > execute the > following line: > > $network = Pcaplet.new('-s 1500') > > I get the following error: > > /usr/lib/ruby/1.8/pcaplet.rb:51:in 'lookupdev': no suitable device > found > (Pcap::PcapError) > from /usr/lib/ruby/1.8/pcaplet.rb:51:in 'initialize' > from test.rb:3 You need to specify the interface to listen on. For example: en0_listener = Pcaplet.new('-s 1500 -i en0') which on my Mac will listen on en0. Ellie Eleanor McHugh Games With Brains ---- raise ArgumentError unless @reality.responds_to? :reason