udp

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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, skipChecksumValidation bool) ([]byte, error)

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

func Encode

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

Encode constructs a UDP ethernet frame 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