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 +