reject

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateICMPv4Unreachable added in v1.1.0

func CreateICMPv4Unreachable(ipv4Hdr header.IPv4) *buf.Buffer

CreateICMPv4Unreachable takes an IPv4 packet with a UDP payload and returns an IPv4 packet with an ICMP Destination Unreachable (Type 1, Code 4) message. ipv4Hdr contains entire ipv4 packet

func CreateICMPv6Unreachable

func CreateICMPv6Unreachable(ipv6Hdr header.IPv6) *buf.Buffer

CreateICMPv6Unreachable takes an IPv6 packet with a UDP payload and returns an IPv6 packet with an ICMPv6 Destination Unreachable (Type 1, Code 4) message. ipv6Hdr contains entire ipv6 packet

func GenerateRstForTcpSynIPv6

func GenerateRstForTcpSynIPv6(ipv6Header header.IPv6, tcpHeader header.TCP) *buf.Buffer

func GenerateRstForTcpSynIPv60

func GenerateRstForTcpSynIPv60(ipv6Header header.IPv6, tcpHeader header.TCP) *buf.Buffer

Types

type Rejector added in v1.1.0

type Rejector struct {
	FakeDnsPool fakeDnsPool
	NatIp6      net.IP
	Router      i.Router
	InboundTag  string
	UserLogger  *userlogger.UserLogger
}

func (*Rejector) Reject added in v1.1.0

func (r *Rejector) Reject(p []byte) *buf.Buffer

Jump to

Keyboard shortcuts

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