Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // return name of TUN/TAP interface Name() string // implement io.Reader interface, read bytes into p from TUN/TAP interface Read(p []byte) (n int, err error) // implement io.Writer interface, write bytes from p to TUN/TAP interface Write(p []byte) (n int, err error) // implement io.Closer interface, must be called when done with TUN/TAP interface Close() error // return string representation of TUN/TAP interface String() string }
Interface represents a TUN/TAP network interface
Directories ¶
Path | Synopsis |
---|---|
dump packets sent to TUN device to stdout example: -- Packet Received -- IP Version: 4 Length: 84 Protocol: 1 (1=ICMP, 6=TCP, 17=UDP) Source IP: 10.12.0.2 Destination IP: 10.12.0.1 Payload: [08001467cc79000156bcc24d0004130d08090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f3031323334353637]
|
dump packets sent to TUN device to stdout example: -- Packet Received -- IP Version: 4 Length: 84 Protocol: 1 (1=ICMP, 6=TCP, 17=UDP) Source IP: 10.12.0.2 Destination IP: 10.12.0.1 Payload: [08001467cc79000156bcc24d0004130d08090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f3031323334353637] |
Click to show internal directories.
Click to hide internal directories.