Documentation ¶
Index ¶
Constants ¶
View Source
const BUFFER_SIZE = 1 << 17 // 128KB
const BUFFER_SIZE = 9216 // Jumbo Frame Size const BUFFER_SIZE = 1 << 16 // 65536
View Source
const MTU int = 65535 // TUN interface, so only plain IP packet, no ethernet header
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Init() error P2PHost() libp2pHost.Host IPv4() string SetIPv4(ipv4 string) IPv6() string SetIPv6(ipv6 string) IP4AddrAdd(ipv4 string) error IP4AddrDel(ipv4 string) error IP6AddrAdd(ipv6 string) error IP6AddrDel(ipv6 string) error GetConnections() int32 RIB() rib.Interface Disconnect() }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.