Documentation
¶
Index ¶
- func ParseMessage(proto int, b []byte) (*icmp.Message, error)
- type MulticastAddressRecord
- type MulticastAddressRecordType
- type MulticastListenerDone
- type MulticastListenerQuery
- type MulticastListenerQueryVersion2
- type MulticastListenerReport
- type MulticastListenerReportVersion2
- type NDPOption
- type NDPOptionBody
- type NDPOptionType
- type NDPOptions
- type NeighborAdvertisement
- type NeighborSolicitation
- type RawNDPOptionBody
- type SourceLinkLayerAddress
- type TargetLinkLayerAddress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MulticastAddressRecord ¶
type MulticastAddressRecordType ¶
type MulticastAddressRecordType int
const ( MulticastAddressRecordTypeModeIsInclude MulticastAddressRecordType = 1 MulticastAddressRecordTypeModeIsExclude MulticastAddressRecordType = 2 MulticastAddressRecordTypeChangeToIncludeMode MulticastAddressRecordType = 3 MulticastAddressRecordTypeChangeToExcludeMode MulticastAddressRecordType = 4 MulticastAddressRecordTypeAllowNewSources MulticastAddressRecordType = 5 MulticastAddressRecordTypeBlockOldSources MulticastAddressRecordType = 6 )
func (MulticastAddressRecordType) String ¶
func (typ MulticastAddressRecordType) String() string
type MulticastListenerDone ¶
type MulticastListenerDone struct {
// contains filtered or unexported fields
}
type MulticastListenerQuery ¶
type MulticastListenerQuery struct {
// contains filtered or unexported fields
}
type MulticastListenerQueryVersion2 ¶
type MulticastListenerQueryVersion2 struct { MaximumResponseDelay uint MulticastAddr netip.Addr SupressRouterSideProcessing bool Robustness uint // Querier's Robustness Variable QueryInterval uint // Quewier's Query Interval SourceAddrs []netip.Addr }
func (*MulticastListenerQueryVersion2) Len ¶
func (m *MulticastListenerQueryVersion2) Len(proto int) int
type MulticastListenerReport ¶
type MulticastListenerReport struct {
// contains filtered or unexported fields
}
type MulticastListenerReportVersion2 ¶
type MulticastListenerReportVersion2 struct {
Records []MulticastAddressRecord
}
func (*MulticastListenerReportVersion2) Len ¶
func (r *MulticastListenerReportVersion2) Len(proto int) int
type NDPOption ¶
type NDPOption struct { Type NDPOptionType Body NDPOptionBody }
type NDPOptionBody ¶
type NDPOptionType ¶
type NDPOptionType int
const ( NDPOptionSourceLinkLayerAddress NDPOptionType = 1 NDPOptionTargetLinkLayerAddress NDPOptionType = 2 )
func (NDPOptionType) String ¶
func (typ NDPOptionType) String() string
type NDPOptions ¶
type NDPOptions = []NDPOption
type NeighborAdvertisement ¶
type NeighborAdvertisement struct { RouterFlag bool SolicitedFlag bool OverrideFlag bool TargetAddr netip.Addr Options NDPOptions }
func (*NeighborAdvertisement) Len ¶
func (na *NeighborAdvertisement) Len(proto int) int
type NeighborSolicitation ¶
type NeighborSolicitation struct { TargetAddr netip.Addr Options NDPOptions }
func (*NeighborSolicitation) Len ¶
func (ns *NeighborSolicitation) Len(proto int) int
type RawNDPOptionBody ¶
type RawNDPOptionBody struct {
Data []byte
}
Raw option body
func (*RawNDPOptionBody) Len ¶
func (p *RawNDPOptionBody) Len() int
func (*RawNDPOptionBody) Marshal ¶
func (p *RawNDPOptionBody) Marshal() ([]byte, error)
type SourceLinkLayerAddress ¶
type SourceLinkLayerAddress struct {
HardwareAddr net.HardwareAddr
}
Source Link-layer Address
func (*SourceLinkLayerAddress) Len ¶
func (p *SourceLinkLayerAddress) Len() int
func (*SourceLinkLayerAddress) Marshal ¶
func (p *SourceLinkLayerAddress) Marshal() ([]byte, error)
type TargetLinkLayerAddress ¶
type TargetLinkLayerAddress struct {
HardwareAddr net.HardwareAddr
}
Target Link-layer Address
func (*TargetLinkLayerAddress) Len ¶
func (p *TargetLinkLayerAddress) Len() int
func (*TargetLinkLayerAddress) Marshal ¶
func (p *TargetLinkLayerAddress) Marshal() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.