spoofsrcip

package
v0.0.0-...-8f3fe9e Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layer

type Layer interface {
	SerializeTo(gopacket.SerializeBuffer, gopacket.SerializeOptions) error
}

type SpoofSrcIP

type SpoofSrcIP struct {
	SrcIP net.IP
	// contains filtered or unexported fields
}

func NewSpoofSrcIP

func NewSpoofSrcIP(iface net.Interface, proto string) (*SpoofSrcIP, error)

func (*SpoofSrcIP) SendTo4

func (ssip *SpoofSrcIP) SendTo4(srcIP, dstIP net.IP, dstPort int, ip layers.IPv4, layer4, payload Layer, checksum bool) (int, error)

func (*SpoofSrcIP) SendTo6

func (ssip *SpoofSrcIP) SendTo6(srcIP, dstIP net.IP, dstPort int, ip layers.IPv6, layer4, payload Layer, checksum bool) (int, error)

Jump to

Keyboard shortcuts

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