Sha256: c75dff8c7e833569d09dd1e7a3eedc885c4ec3eb024c993a56b435569ddb4224
Contents?: true
Size: 1.3 KB
Versions: 10
Compression:
Stored size: 1.3 KB
Contents
# coding: utf-8 # frozen_string_literal: true # This file is part of PacketGen # See https://github.com/sdaubert/packetgen for more informations # Copyright (C) 2016 Sylvain Daubert <sylvain.daubert@laposte.net> # This program is published under MIT license. module PacketGen module Header class Dot11 # @!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 # @private Element = Types::AbstractTLV.create class Element # Known element types TYPES = { 0 => 'SSID', 1 => 'Rates', 2 => 'FHset', 3 => 'DSset', 4 => 'CFset', 5 => 'TIM', 6 => 'IBSSset', 16 => 'challenge', 42 => 'ERPinfo', 46 => 'QoS Cap.', 47 => 'ERPinfo', 48 => 'RSNinfo', 50 => 'ESRates', 68 => 'reserved', 221 => 'vendor' }.freeze end Element.define_type_enum Element::TYPES.invert # Array of {Element}. # @since 3.1.1 class ArrayOfElements < Types::Array set_of Element end end end end
Version data entries
10 entries across 10 versions & 1 rubygems