add inet6 addr
This commit is contained in:
parent
0da8e9d95f
commit
1c7020c553
|
@ -32,6 +32,11 @@ iflist.each do |ifname|
|
||||||
puts "\t" + "inet addr:" + ifconfig.address +
|
puts "\t" + "inet addr:" + ifconfig.address +
|
||||||
ptp + bcast + " Mask:" + ifconfig.netmask
|
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" +
|
puts "\t" +
|
||||||
Sigar.net_interface_flags_to_s(flags) +
|
Sigar.net_interface_flags_to_s(flags) +
|
||||||
" MTU:" + ifconfig.mtu.to_s +
|
" MTU:" + ifconfig.mtu.to_s +
|
||||||
|
|
Loading…
Reference in New Issue