ipv6rwc

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: LGPL-3.0 Imports: 12 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateICMPv6

func CreateICMPv6(dst net.IP, src net.IP, mtype ipv6.ICMPType, mcode int, mbody icmp.MessageBody) ([]byte, error)

Creates an ICMPv6 packet based on the given icmp.MessageBody and other parameters, complete with IP headers only, which can be written directly to a TUN adapter, or called directly by the CreateICMPv6L2 function when generating a message for TAP adapters.

Types

type ICMPv6

type ICMPv6 struct{}

type ReadWriteCloser

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

func NewReadWriteCloser

func NewReadWriteCloser(c *core.Core) *ReadWriteCloser

func (*ReadWriteCloser) Address

func (rwc *ReadWriteCloser) Address() address.Address

func (*ReadWriteCloser) Close

func (rwc *ReadWriteCloser) Close() error

func (*ReadWriteCloser) MTU

func (k *ReadWriteCloser) MTU() uint64

func (*ReadWriteCloser) MaxMTU

func (k *ReadWriteCloser) MaxMTU() uint64

func (*ReadWriteCloser) Read

func (rwc *ReadWriteCloser) Read(p []byte) (n int, err error)

func (*ReadWriteCloser) SetMTU

func (k *ReadWriteCloser) SetMTU(mtu uint64)

func (*ReadWriteCloser) Subnet

func (rwc *ReadWriteCloser) Subnet() address.Subnet

func (*ReadWriteCloser) Write

func (rwc *ReadWriteCloser) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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