public Ifaddr(Ruby runtime, RubyClass metaClass, NetworkInterface ni) throws Exception { super(runtime, metaClass); this.isUp = ni.isUp(); this.name = ni.getDisplayName(); this.isLoopback = ni.isLoopback(); this.isPointToPoint = ni.isPointToPoint(); this.networkInterface = ni; this.isLink = true; setAddr(runtime); setIndex(ni); setInspectString(ni); }
public Ifaddr(Ruby runtime, RubyClass metaClass, NetworkInterface ni) throws Exception { super(runtime, metaClass); this.isUp = ni.isUp(); this.name = ni.getDisplayName(); this.isLoopback = ni.isLoopback(); this.isPointToPoint = ni.isPointToPoint(); this.networkInterface = ni; this.isLink = true; setAddr(runtime); setIndex(ni); setInspectString(ni); }
public Ifaddr(Ruby runtime, RubyClass metaClass, NetworkInterface ni, InterfaceAddress it) throws Exception { super(runtime, metaClass); this.isUp = ni.isUp(); this.name = ni.getDisplayName(); this.isLoopback = ni.isLoopback(); this.isPointToPoint = ni.isPointToPoint(); this.networkInterface = ni; this.isLink = false; this.address = it.getAddress(); this.broadcast = it.getBroadcast(); this.interfaceAddress = it; setAddr(runtime); setNetmask(it); setIndex(ni); setInspectString(ni); }
public Ifaddr(Ruby runtime, RubyClass metaClass, NetworkInterface ni, InterfaceAddress it) throws Exception { super(runtime, metaClass); this.isUp = ni.isUp(); this.name = ni.getDisplayName(); this.isLoopback = ni.isLoopback(); this.isPointToPoint = ni.isPointToPoint(); this.networkInterface = ni; this.isLink = false; this.address = it.getAddress(); this.broadcast = it.getBroadcast(); this.interfaceAddress = it; setAddr(runtime); setNetmask(it); setIndex(ni); setInspectString(ni); }