Versions in this module Expand all Collapse all v0 v0.0.1 Jun 16, 2020 Changes in this version + const MaxMsgsPerRecv — linux/amd64 + var BufConfig = []int — linux/amd64 + func New(opts *Options) (stack.LinkEndpoint, error) + type InjectableEndpoint struct + func NewInjectable(fd int, mtu uint32, capabilities stack.LinkEndpointCapabilities) *InjectableEndpoint + func (e *InjectableEndpoint) Attach(dispatcher stack.NetworkDispatcher) + func (e *InjectableEndpoint) Capabilities() stack.LinkEndpointCapabilities + func (e *InjectableEndpoint) GSOMaxSize() uint32 + func (e *InjectableEndpoint) InjectInbound(protocol tcpip.NetworkProtocolNumber, pkt tcpip.PacketBuffer) + func (e *InjectableEndpoint) InjectOutbound(dest tcpip.Address, packet []byte) *tcpip.Error + func (e *InjectableEndpoint) IsAttached() bool + func (e *InjectableEndpoint) LinkAddress() tcpip.LinkAddress + func (e *InjectableEndpoint) MTU() uint32 + func (e *InjectableEndpoint) MaxHeaderLength() uint16 + func (e *InjectableEndpoint) Wait() + func (e *InjectableEndpoint) WritePacket(r *stack.Route, gso *stack.GSO, protocol tcpip.NetworkProtocolNumber, ...) *tcpip.Error + func (e *InjectableEndpoint) WritePackets(r *stack.Route, gso *stack.GSO, hdrs []stack.PacketDescriptor, ...) (int, *tcpip.Error) + func (e *InjectableEndpoint) WriteRawPacket(vv buffer.VectorisedView) *tcpip.Error + type Options struct + Address tcpip.LinkAddress + ClosedFunc func(*tcpip.Error) + DisconnectOk bool + EthernetHeader bool + FDs []int + GSOMaxSize uint32 + MTU uint32 + PacketDispatchMode PacketDispatchMode + RXChecksumOffload bool + SaveRestore bool + SoftwareGSOEnabled bool + TXChecksumOffload bool + type PacketDispatchMode int + const PacketMMap + const Readv + const RecvMMsg + func (p PacketDispatchMode) String() string