diff --git a/bindings/ruby/examples/arp.rb b/bindings/ruby/examples/arp.rb new file mode 100644 index 00000000..e668cd32 --- /dev/null +++ b/bindings/ruby/examples/arp.rb @@ -0,0 +1,8 @@ +require 'sigar' + +Sigar.new.arp_list.each do |arp| + host = "?" #XXX + puts host + " " + + "(" + arp.address + ")" + " at " + arp.hwaddr + " " + + "[" + arp.type + "]" + " on " + arp.ifname +end