Documentation ¶
Index ¶
- func CreateICMPv6(dst net.IP, src net.IP, mtype ipv6.ICMPType, mcode int, mbody icmp.MessageBody) ([]byte, error)
- type ReadWriteCloser
- func (rwc *ReadWriteCloser) Address() address.Address
- func (rwc *ReadWriteCloser) Close() error
- func (k *ReadWriteCloser) MTU() uint64
- func (k *ReadWriteCloser) MaxMTU() uint64
- func (rwc *ReadWriteCloser) Read(p []byte) (n int, err error)
- func (k *ReadWriteCloser) SetMTU(mtu uint64)
- func (rwc *ReadWriteCloser) Subnet() address.Subnet
- func (rwc *ReadWriteCloser) Write(p []byte) (n int, err error)
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 ReadWriteCloser ¶
type ReadWriteCloser struct {
// contains filtered or unexported fields
}
func NewReadWriteCloser ¶
func NewReadWriteCloser(c *core.Core, log *log.Logger, config *config.TunnelRoutingConfig) *ReadWriteCloser
func (*ReadWriteCloser) Address ¶
func (rwc *ReadWriteCloser) Address() address.Address
func (*ReadWriteCloser) Close ¶
func (rwc *ReadWriteCloser) Close() error
func (*ReadWriteCloser) Subnet ¶
func (rwc *ReadWriteCloser) Subnet() address.Subnet
Click to show internal directories.
Click to hide internal directories.