Versions in this module Expand all Collapse all v0 v0.0.20201202 Dec 1, 2020 Changes in this version + const FD_ERR — linux/amd64 + type Bind interface + Close func() error + LastMark func() uint32 + ReceiveIPv4 func(b []byte) (n int, ep Endpoint, err error) + ReceiveIPv6 func(buff []byte) (n int, ep Endpoint, err error) + Send func(b []byte, ep Endpoint) error + SetMark func(mark uint32) error + func CreateBind(port uint16) (b Bind, actualPort uint16, err error) + type BindSocketToInterface interface + BindSocketToInterface4 func(interfaceIndex uint32, blackhole bool) error + BindSocketToInterface6 func(interfaceIndex uint32, blackhole bool) error + type Endpoint interface + ClearSrc func() + DstIP func() net.IP + DstToBytes func() []byte + DstToString func() string + SrcIP func() net.IP + SrcToString func() string + func CreateEndpoint(s string) (Endpoint, error) + type IPv4Source struct — linux/amd64 + Ifindex int32 + Src [4]byte + type IPv6Source struct — linux/amd64 + type NativeEndpoint net.UDPAddr — darwin/amd64, js/wasm, windows/amd64 + func (_ *NativeEndpoint) ClearSrc() + func (e *NativeEndpoint) DstIP() net.IP + func (e *NativeEndpoint) DstToBytes() []byte + func (e *NativeEndpoint) DstToString() string + func (e *NativeEndpoint) SrcIP() net.IP + func (e *NativeEndpoint) SrcToString() string + type NativeEndpoint struct — linux/amd64 + func (end *NativeEndpoint) ClearDst() + func (end *NativeEndpoint) ClearSrc() + func (end *NativeEndpoint) DstIP() net.IP + func (end *NativeEndpoint) DstToBytes() []byte + func (end *NativeEndpoint) DstToString() string + func (end *NativeEndpoint) SrcIP() net.IP + func (end *NativeEndpoint) SrcToString() string + func (endpoint *NativeEndpoint) Dst4() *unix.SockaddrInet4 + func (endpoint *NativeEndpoint) IsV6() bool + func (endpoint *NativeEndpoint) Src4() *IPv4Source + type PeekLookAtSocketFd interface + PeekLookAtSocketFd4 func() (fd int, err error) + PeekLookAtSocketFd6 func() (fd int, err error)