class PacketGen::Header::MLDv2::McastAddressRecord
Class to handle MLDv2
Mcast Address Records (MAR).
A Mcast Address Record has the following format:
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Record Type | Aux Data Len | Number of Sources (N) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | * * | | * Multicast Address * | | * * | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | * * | | * Source Address [1] * | | * * | | +- -+ . . . . . . . . . +- -+ | | * * | | * Source Address [N] * | | * * | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | . . . Auxiliary Data . . . | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@author Sylvain Daubert
Constants
- RECORD_TYPES
Known record types
Public Instance Methods
human_type()
click to toggle source
# File lib/packetgen/header/mldv2/mcast_address_record.rb, line 87 def human_type self[:type].to_human end
to_human()
click to toggle source
# File lib/packetgen/header/mldv2/mcast_address_record.rb, line 91 def to_human "#{human_type}(ma:#{multicast_addr}|src:#{source_addr.to_human})" end