fakeip

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumLayer

type ChecksumLayer interface {
	SetNetworkLayerForChecksum(gopacket.NetworkLayer) error
}

checksum layer

type FakeIPManager

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

fake ip manager

func NewFakeIPManager

func NewFakeIPManager(network, script, db string) *FakeIPManager

func (*FakeIPManager) DNSRoutings

func (manager *FakeIPManager) DNSRoutings() []net.IPNet

dns traffice routing

func (*FakeIPManager) Egress added in v0.1.14

func (manager *FakeIPManager) Egress(p *message.Packet) (bool, error)

replace src ipaddress

func (*FakeIPManager) GetNameRecord added in v0.1.14

func (manager *FakeIPManager) GetNameRecord(name string) []net.IP

func (*FakeIPManager) Ingress added in v0.1.14

func (manager *FakeIPManager) Ingress(p *message.Packet) (bool, error)

replace dst ipaddress

func (*FakeIPManager) SetNameRecord added in v0.1.14

func (manager *FakeIPManager) SetNameRecord(name string, ip net.IP)

register custome dns record to fakeip manager

Jump to

Keyboard shortcuts

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