icmpv6

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICMPv6

type ICMPv6 struct {
	Type     uint8
	Code     uint8
	Checksum uint16
	Data     []byte
}

func (*ICMPv6) ICMPType

func (i *ICMPv6) ICMPType() ipv6.ICMPType

func (*ICMPv6) Len

func (i *ICMPv6) Len() (n uint16)

func (*ICMPv6) Marshal

func (i *ICMPv6) Marshal() (data []byte, err error)

func (*ICMPv6) Unmarshal

func (i *ICMPv6) Unmarshal(data []byte) error

type MTU

type MTU struct {
	Type   uint8
	Length uint8
	MTU    uint32
}

type PrefixInfo

type PrefixInfo struct {
	Type           uint8
	Length         uint8
	PrefixLength   uint8
	OnLinkFlag     bool
	AutonomousFlag bool
	ValidLifeTime  uint32
	PrefLifeTime   uint32
	Prefix         net.IP
}

type RouterAdvertisement

type RouterAdvertisement struct {
	Type        uint8
	Code        uint8
	Checksum    uint16
	HopLimit    uint8
	ManagedFlag bool
	OtherFlag   bool
	LifeTime    uint16
	ReachTime   uint32
	RetransTime uint32
	SLL         SourceLinkLayer
	MTU         MTU
	Prefix      PrefixInfo
}

func NewRouterAdvertisement

func NewRouterAdvertisement(src, dst net.IP, prefix string, prefixlen string) (ra *RouterAdvertisement)

func (*RouterAdvertisement) Marshal

func (ra *RouterAdvertisement) Marshal() (data []byte, err error)

type RouterSolicitation

type RouterSolicitation struct {
	Type     uint8
	Code     uint8
	Checksum uint16
	SLL      SourceLinkLayer
}

func (*RouterSolicitation) Unmarshal

func (rs *RouterSolicitation) Unmarshal(data []byte) error

type SourceLinkLayer

type SourceLinkLayer struct {
	Type   uint8
	Length uint8
	HWSrc  net.HardwareAddr
}

Jump to

Keyboard shortcuts

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