From 583922f3d06ff197cb4f7842b180614c1f9e1bdc Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Fri, 18 Nov 2005 18:09:12 +0000 Subject: [PATCH] use NetInterfaceConfig.getType() --- bindings/java/src/net/hyperic/sigar/cmd/Ifconfig.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bindings/java/src/net/hyperic/sigar/cmd/Ifconfig.java b/bindings/java/src/net/hyperic/sigar/cmd/Ifconfig.java index de65946c..e7382602 100644 --- a/bindings/java/src/net/hyperic/sigar/cmd/Ifconfig.java +++ b/bindings/java/src/net/hyperic/sigar/cmd/Ifconfig.java @@ -70,17 +70,13 @@ public class Ifconfig extends SigarCommandBase { this.sigar.getNetInterfaceConfig(name); long flags = ifconfig.getFlags(); - //XXX cannot assume ethernet - String encap = (flags & NetFlags.IFF_LOOPBACK) > 0 ? - "Local Loopback" : "Ethernet"; - String hwaddr = ""; if (!NetFlags.NULL_HWADDR.equals(ifconfig.getHwaddr())) { hwaddr = " HWaddr " + ifconfig.getHwaddr(); } println(ifconfig.getName() + "\t" + - "Link encap:" + encap + + "Link encap:" + ifconfig.getType() + hwaddr); String ptp = "";