lib/packetgen/header/mldv2/mlq.rb in packetgen-2.6.0 vs lib/packetgen/header/mldv2/mlq.rb in packetgen-2.7.0
- old
+ new
@@ -90,11 +90,11 @@
define_field_before :body, :number_of_sources, Types::Int16
# @!attribute source_addr
# Array of IPv6 source addresses
# @return [IPv6::ArrayOfAddr]
define_field_before :body, :source_addr, IPv6::ArrayOfAddr,
- builder: ->(h,t) { t.new(counter: h[:number_of_sources]) }
+ builder: ->(h, t) { t.new(counter: h[:number_of_sources]) }
# @!attribute flag_resv
# 4-bit reserved field in {#flags}
# @return [Integer]
# @!attribute flag_s
@@ -136,11 +136,10 @@
def qqic=(value)
self[:qqic].value = IGMPv3.encode(value)
end
end
end
-
- self.add_class MLDv2::MLQ
- ICMPv6.bind_header MLDv2::MLQ, op: :and, type: 130, body: ->(b) { b.nil? ? '' : b.length > 23 }
+ self.add_class MLDv2::MLQ
+ ICMPv6.bind MLDv2::MLQ, type: 130, body: ->(b) { b.nil? ? '' : b.length > 23 }
end
end