netstack

package
v0.0.0-...-763e4db Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2024 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YggdrasilNIC

type YggdrasilNIC struct {
	// contains filtered or unexported fields
}

func (*YggdrasilNIC) ARPHardwareType

func (*YggdrasilNIC) ARPHardwareType() header.ARPHardwareType

func (*YggdrasilNIC) AddHeader

func (e *YggdrasilNIC) AddHeader(*stack.PacketBuffer)

func (*YggdrasilNIC) Attach

func (e *YggdrasilNIC) Attach(dispatcher stack.NetworkDispatcher)

func (*YggdrasilNIC) Capabilities

func (*YggdrasilNIC) Close

func (e *YggdrasilNIC) Close()

func (*YggdrasilNIC) IsAttached

func (e *YggdrasilNIC) IsAttached() bool

func (*YggdrasilNIC) LinkAddress

func (*YggdrasilNIC) LinkAddress() tcpip.LinkAddress

func (*YggdrasilNIC) MTU

func (e *YggdrasilNIC) MTU() uint32

func (*YggdrasilNIC) MaxHeaderLength

func (*YggdrasilNIC) MaxHeaderLength() uint16

func (*YggdrasilNIC) ParseHeader

func (e *YggdrasilNIC) ParseHeader(*stack.PacketBuffer) bool

func (*YggdrasilNIC) SetLinkAddress

func (*YggdrasilNIC) SetLinkAddress(tcpip.LinkAddress)

func (*YggdrasilNIC) SetMTU

func (e *YggdrasilNIC) SetMTU(uint32)

func (*YggdrasilNIC) SetOnCloseAction

func (e *YggdrasilNIC) SetOnCloseAction(func())

func (*YggdrasilNIC) Wait

func (*YggdrasilNIC) Wait()

func (*YggdrasilNIC) WritePackets

func (e *YggdrasilNIC) WritePackets(
	list stack.PacketBufferList,
) (int, tcpip.Error)

func (*YggdrasilNIC) WriteRawPacket

func (e *YggdrasilNIC) WriteRawPacket(*stack.PacketBuffer) tcpip.Error

type YggdrasilNetstack

type YggdrasilNetstack struct {
	// contains filtered or unexported fields
}

func CreateYggdrasilNetstack

func CreateYggdrasilNetstack(ygg *core.Core) (*YggdrasilNetstack, error)

func (*YggdrasilNetstack) DialContext

func (s *YggdrasilNetstack) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*YggdrasilNetstack) DialTCP

func (s *YggdrasilNetstack) DialTCP(addr *net.TCPAddr) (*gonet.TCPConn, error)

func (*YggdrasilNetstack) DialUDP

func (s *YggdrasilNetstack) DialUDP(addr *net.UDPAddr) (*gonet.UDPConn, error)

func (*YggdrasilNetstack) ListenTCP

func (s *YggdrasilNetstack) ListenTCP(addr *net.TCPAddr) (net.Listener, error)

func (*YggdrasilNetstack) ListenUDP

func (s *YggdrasilNetstack) ListenUDP(addr *net.UDPAddr) (*gonet.UDPConn, error)

func (*YggdrasilNetstack) NewYggdrasilNIC

func (s *YggdrasilNetstack) NewYggdrasilNIC(ygg *core.Core) tcpip.Error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL