newv1

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: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	V1_AREC_MIN_LEN = 4 + 4 + 4 + 4 + 16 // header + ea + ip + gw + ref.h + ref.l
	V1_AREC_MAX_LEN = 4 + 16 + 16 + 16 + 16
	// v1 header offsets
	V1_RESERVED = 4
)

Variables

This section is empty.

Functions

func AddrRecAsSlice

func AddrRecAsSlice(arec AddrRec) []byte

func AddrRecCheck

func AddrRecCheck(arec []byte) (ok bool, length, ea_iplen, gw_iplen int)

func AddrRecDecode

func AddrRecDecode(arecb []byte) (bool, int, AddrRec)

func AddrRecEncode

func AddrRecEncode(arecb []byte, arec AddrRec) int

func AddrRecEncodedLen

func AddrRecEncodedLen(ea_iplen, gw_iplen int) int

func AddrRecEncodedLenOf

func AddrRecEncodedLenOf(arec AddrRec) int

func AddrRecSlices

func AddrRecSlices(arec []byte, ea_iplen, gw_iplen int) (
	length int, ea, ip, gw, ref []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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