oldv1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V1_AREC_MAX_LEN = 16 + 16 + 16 + 16 // ea + ip + gw + ref.h + ref.l
	// v1 header offsets
	V1_IPVER    = 4 // high nibble is the ea IP ver, low nibble is gw IP ver
	V1_RESERVED = 5
)

Variables

This section is empty.

Functions

func AddrRecDecode

func AddrRecDecode(ea_iplen, gw_iplen int, arecb []byte) (arec AddrRec)

func AddrRecEncode

func AddrRecEncode(arecb []byte, arec AddrRec)

func AddrRecEncodedLen

func AddrRecEncodedLen(ea_iplen, gw_iplen int) int

func AddrRecEncodedLenOf

func AddrRecEncodedLenOf(arec AddrRec) int

func AddrRecSlices

func AddrRecSlices(ea_iplen, gw_iplen int, arec []byte) (ea, ip, gw, refh, refl []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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