iputil

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// Need 96 bytes for the largest reject packet:
	// - 20 byte ipv4 header
	// - 8 byte icmpv4 header
	// - 68 byte body (60 byte max orig ipv4 header + 8 byte orig icmpv4 header)
	MaxRejectPacketSize = ipv4.HeaderLen + 8 + 60 + 8
)

Variables

This section is empty.

Functions

func CreateICMPEchoResponse added in v1.7.0

func CreateICMPEchoResponse(packet, out []byte) []byte

func CreateRejectPacket added in v1.7.0

func CreateRejectPacket(packet []byte, out []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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