Class: RbTunTap::TapDevice
Overview
A derivative of Device
that is a TAP device.
Instance Attribute Summary
Attributes inherited from Device
Instance Method Summary collapse
-
#initialize(name) ⇒ TapDevice
constructor
A new instance of TapDevice.
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) ⇒ TapDevice
Returns a new instance of TapDevice.
130 131 132 |
# File 'lib/rb_tuntap.rb', line 130 def initialize(name) super(name, RbTunTap::DEV_TYPE_TAP, detect_tun_device_file) end |