add inet6 addr

This commit is contained in:
Doug MacEachern 2009-07-25 08:13:44 -07:00
parent 0da8e9d95f
commit 1c7020c553
1 changed files with 5 additions and 0 deletions

View File

@ -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 +