ipv6rwc

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: LGPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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