udp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Functions

func Decode

func Decode(frame []byte, addr *tcpip.FullAddress, layer3, skipChecksumValidation bool) ([]byte, error)

Decode extracts the source address and payload from a UDP ethernet frame/packet.

func Encode

func Encode(frame []byte, src, dst *tcpip.FullAddress, payloadLength int, layer3, skipChecksumCalculation bool) (int, error)

Encode constructs a UDP ethernet frame / packet with the given parameters. It assumes that the payload is already in the frame buffer at the correct offset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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