ipv6

package
v0.0.0-...-65a12e2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

Provides encoding and decoding for IPv6 packets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags uint8

type Packet

type Packet struct {
	Version  uint8
	Class    uint8
	Label    uint32
	Length   uint16        `string:"len"`
	NextHdr  ipv4.Protocol `string:"next"`
	HopLimit uint8         `cmp:"skip" string:"hop"`
	SrcAddr  net.IP        `string:"src"`
	DstAddr  net.IP        `string:"dst"`
	// contains filtered or unexported fields
}

func Make

func Make() *Packet

func (*Packet) Answers

func (p *Packet) Answers(other packet.Packet) bool

func (*Packet) Equals

func (p *Packet) Equals(other packet.Packet) bool

func (*Packet) GetLength

func (p *Packet) GetLength() uint16

func (*Packet) GetType

func (p *Packet) GetType() packet.Type

func (*Packet) GuessPayloadType

func (p *Packet) GuessPayloadType() packet.Type

func (*Packet) InitChecksum

func (p *Packet) InitChecksum(csum uint32)

func (*Packet) Pack

func (p *Packet) Pack(buf *packet.Buffer) error

func (*Packet) Payload

func (p *Packet) Payload() packet.Packet

func (*Packet) SetPayload

func (p *Packet) SetPayload(pl packet.Packet) error

func (*Packet) String

func (p *Packet) String() string

func (*Packet) Unpack

func (p *Packet) Unpack(buf *packet.Buffer) error

Jump to

Keyboard shortcuts

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