Documentation ¶
Index ¶
- 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 BaseLayer
- type IGMP
- type IGMPType
- type IGMPv3GroupRecord
- type IGMPv3GroupRecordType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendIGMPLeaveGroupV2 ¶
Types ¶
type BaseLayer ¶
type BaseLayer struct { // Contents is the set of bytes that make up this layer. IE: for an // Ethernet packet, this would be the set of bytes making up the // Ethernet frame. Contents []byte // Payload is the set of bytes contained by (but not part of) this // Layer. Again, to take Ethernet as an example, this would be the // set of bytes encapsulated by the Ethernet protocol. Payload []byte }
-----------------------------------------***********************--------------------------------- BaseLayer is a convenience struct which implements the LayerData and LayerPayload functions of the Layer interface.
type IGMP ¶
type IGMP struct { BaseLayer Type 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) 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.