From 1c7020c553d4299e425a6edadcad62d0f021d35c Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 25 Jul 2009 08:13:44 -0700 Subject: [PATCH] add inet6 addr --- bindings/ruby/examples/ifconfig.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindings/ruby/examples/ifconfig.rb b/bindings/ruby/examples/ifconfig.rb index b8b87eaa..2e3181e4 100644 --- a/bindings/ruby/examples/ifconfig.rb +++ b/bindings/ruby/examples/ifconfig.rb @@ -32,6 +32,11 @@ iflist.each do |ifname| puts "\t" + "inet addr:" + ifconfig.address + ptp + bcast + " Mask:" + ifconfig.netmask + if ifconfig.prefix6_length != 0 + puts "\t" + "inet6 addr: " + ifconfig.address6 + "/" + + ifconfig.prefix6_length.to_s + " Scope:" + ifconfig.scope6.to_s + end + puts "\t" + Sigar.net_interface_flags_to_s(flags) + " MTU:" + ifconfig.mtu.to_s +