Home | Trees | Index | Help |
---|
Module dnet :: Class tun |
|
object
--+
|
tun
tun(src, dst[, mtu]) -> Network tunnel interface handle Obtain a handle to a network tunnel interface, to which packets destined for dst are delivered (with source addresses rewritten to src), where they may be read by a userland process and processed as desired. Packets written back to the handle are injected into the kernel networking subsystem.
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
close(...)
| |
Return file descriptor for tunnel handle. | |
Return the next packet delivered to the tunnel interface. | |
Send an IP packet, returning the number of bytes sent or -1 on failure. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... |
Class Variable Summary | |
---|---|
getset_descriptor |
fd = <attribute 'fd' of 'dnet.tun' objects>
|
getset_descriptor |
name = <attribute 'name' of 'dnet.tun' objects>
|
Method Details |
---|
__init__(...)
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
fileno(...)Return file descriptor for tunnel handle. |
recv(...)Return the next packet delivered to the tunnel interface. |
send(...)Send an IP packet, returning the number of bytes sent or -1 on failure. Arguments: pkt -- binary string representing an IP packet |
Class Variable Details |
---|
fd
|
name
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jan 19 13:24:11 2006 | http://epydoc.sf.net |