add NetInterfaceConfig.Type

This commit is contained in:
Doug MacEachern committed 2005-12-06 17:01:54 +00:00
1 parent 1296c1ebe6
commit f6aa1fa388
2 files changed
+3 -5

No files matched your search

+1 -5
View File
@@ -12,17 +12,13 @@ public class Ifconfig {
sigar.NetInterfaceConfig(name);
ulong flags = ifconfig.Flags;
//XXX cannot assume ethernet
String encap = (flags & Sigar.IFF_LOOPBACK) > 0 ?
"Local Loopback" : "Ethernet";
String hwaddr = "";
if (!Sigar.NULL_HWADDR.Equals(ifconfig.Hwaddr)) {
hwaddr = " HWaddr " + ifconfig.Hwaddr;
}
println(ifconfig.Name + "\t" +
"Link encap:" + encap +
"Link encap:" + ifconfig.Type +
hwaddr);
String ptp = "";