Documentation ¶
Index ¶
- func HandleNextPacket(ponPortId uint32, onuId uint32, serialNumber string, portNo uint32, ...) error
- func SendIGMPLeaveGroupV2(ponPortId uint32, onuId uint32, serialNumber string, portNo uint32, ...) error
- func SendIGMPMembershipReportV2(ponPortId uint32, onuId uint32, serialNumber string, portNo uint32, ...) error
- func SendIGMPMembershipReportV3(ponPortId uint32, onuId uint32, serialNumber string, portNo uint32, ...) error
- type IGMP
- type IGMPv3GroupRecord
- type IGMPv3GroupRecordType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleNextPacket ¶ added in v1.0.0
func SendIGMPLeaveGroupV2 ¶
Types ¶
type IGMP ¶
type IGMP struct { layers.BaseLayer Type layers.IGMPType MaxResponseTime time.Duration Checksum uint16 GroupAddress net.IP SupressRouterProcessing bool RobustnessValue uint8 IntervalTime time.Duration SourceAddresses []net.IP NumberOfGroupRecords uint16 NumberOfSources uint16 GroupRecords []IGMPv3GroupRecord Version uint8 // IGMP protocol version }
func (*IGMP) LayerContents ¶ added in v1.0.0
func (*IGMP) LayerPayload ¶ added in v1.0.0
func (*IGMP) SerializeTo ¶
func (igmp *IGMP) SerializeTo(b gopacket.SerializeBuffer, opts gopacket.SerializeOptions) error
SerializeTo writes the serialized form of this layer into the SerializationBuffer, implementing gopacket.SerializableLayer. See the docs for gopacket.SerializableLayer for more info.
type IGMPv3GroupRecord ¶ added in v0.0.18
type IGMPv3GroupRecord struct { Type IGMPv3GroupRecordType AuxDataLen uint8 // this should always be 0 as per IGMPv3 spec. NumberOfSources uint16 MulticastAddress net.IP SourceAddresses []net.IP AuxData uint32 // NOT USED }
IGMPv3GroupRecord stores individual group records for a V3 Membership Report message.
type IGMPv3GroupRecordType ¶ added in v0.0.18
type IGMPv3GroupRecordType uint8
const ( IGMPIsIn IGMPv3GroupRecordType = 0x01 // Type MODE_IS_INCLUDE, source addresses x IGMPIsEx IGMPv3GroupRecordType = 0x02 // Type MODE_IS_EXCLUDE, source addresses x IGMPToIn IGMPv3GroupRecordType = 0x03 // Type CHANGE_TO_INCLUDE_MODE, source addresses x IGMPToEx IGMPv3GroupRecordType = 0x04 // Type CHANGE_TO_EXCLUDE_MODE, source addresses x IGMPAllow IGMPv3GroupRecordType = 0x05 // Type ALLOW_NEW_SOURCES, source addresses x IGMPBlock IGMPv3GroupRecordType = 0x06 // Type BLOCK_OLD_SOURCES, source addresses x )
func (IGMPv3GroupRecordType) String ¶ added in v0.0.18
func (i IGMPv3GroupRecordType) String() string
Click to show internal directories.
Click to hide internal directories.