lib/packetgen/header/dot11/element.rb in packetgen-3.3.3 vs lib/packetgen/header/dot11/element.rb in packetgen-4.0.0
- old
+ new
@@ -13,14 +13,14 @@
# @!parse
# # IEEE 802.11 information element
# #
# # An {Element} is a piece of data contained in a Dot11 management frame.
# # @since 1.4.0
- # # @since 3.1.0 subclass of {Types::AbstractTLV}
- # class Element < Types::AbstractTLV; end
+ # # @since 3.1.0 subclass of {BinStruct::AbstractTLV}
+ # class Element < BinStruct::AbstractTLV; end
# @private
- Element = Types::AbstractTLV.create
+ Element = BinStruct::AbstractTLV.create
class Element
# Known element types
TYPES = {
0 => 'SSID',
@@ -42,10 +42,10 @@
end
Element.define_type_enum Element::TYPES.invert
# Array of {Element}.
# @since 3.1.1
- class ArrayOfElements < Types::Array
+ class ArrayOfElements < BinStruct::Array
set_of Element
end
end
end
end