decoder

package
v0.0.0-...-bec6d6f Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package decoder decodes a raw tinydns record.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	// Record type.
	Type uint16
	// TimeToLive.
	Ttl uint32
	// TimeToDie.
	Ttd uint64
	// XXX
	XLoc byte
	// Raw payload data; type specific.
	Data []byte
	// The name this record is for.
	Name packet.Namelabel
}

func TdnsRecord

func TdnsRecord(name packet.Namelabel, raw []byte) (Entry, error)

TdnsRecord decodes a raw tinydns-like record entry.

Jump to

Keyboard shortcuts

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