Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrefixInfo ¶
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 }
Click to show internal directories.
Click to hide internal directories.