fixup hwaddr
This commit is contained in:
parent
bb945982da
commit
51cd482ece
|
@ -7,7 +7,13 @@ iflist.each do |ifname|
|
||||||
ifconfig = sigar.net_interface_config(ifname)
|
ifconfig = sigar.net_interface_config(ifname)
|
||||||
flags = ifconfig.flags
|
flags = ifconfig.flags
|
||||||
encap = ifconfig.type
|
encap = ifconfig.type
|
||||||
|
|
||||||
hwaddr = ifconfig.hwaddr
|
hwaddr = ifconfig.hwaddr
|
||||||
|
if hwaddr == Sigar::NULL_HWADDR
|
||||||
|
hwaddr = ""
|
||||||
|
else
|
||||||
|
hwaddr = " HWaddr " + hwaddr
|
||||||
|
end
|
||||||
|
|
||||||
puts ifname + "\t" + "Link encap:" + encap + hwaddr
|
puts ifname + "\t" + "Link encap:" + encap + hwaddr
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue