gtuntap

package
v0.0.0-...-04ff805 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iface

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

func NewIface

func NewIface(name, ip string, mtu int) *Iface

func (*Iface) Name

func (i *Iface) Name() string

func (*Iface) Read

func (i *Iface) Read(pkt PacketIP) (int, error)

func (*Iface) Start

func (i *Iface) Start() error

func (*Iface) Write

func (i *Iface) Write(pkt PacketIP) (int, error)

type PacketIP

type PacketIP []byte

func NewPacketIP

func NewPacketIP(size int) PacketIP

func (PacketIP) GetDestinationIP

func (p PacketIP) GetDestinationIP() net.IP

func (PacketIP) GetSourceIP

func (p PacketIP) GetSourceIP() net.IP

Jump to

Keyboard shortcuts

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