Class: RbTunTap::TunDevice

Inherits:
Device
  • Object
show all
Defined in:
lib/rb_tuntap.rb

Overview

A derivative of Device that is a TUN device.

Instance Attribute Summary

Attributes inherited from Device

#name

Instance Method Summary collapse

Methods inherited from Device

#addr, #addr=, #close, #closed?, #detect_tun_device_file, #down, #dstaddr, #dstaddr=, #get_addr, #get_dstaddr, #get_hwaddr, #get_mtu, #get_netmask, #hwaddr, #hwaddr=, #mtu, #mtu=, #netmask, #netmask=, #open, #opened?, #persist, #set_addr, #set_dstaddr, #set_hwaddr, #set_mtu, #set_netmask, #to_io, #up

Constructor Details

#initialize(name) ⇒ TunDevice

Returns a new instance of TunDevice.



119
120
121
# File 'lib/rb_tuntap.rb', line 119

def initialize(name)
  super(name, RbTunTap::DEV_TYPE_TUN, detect_tun_device_file)
end