Sha256: a3995a3adf18bb99c233d5a47e35037fc0207fbc1a70f37c9c15b954745b3d8a

Contents?: true

Size: 1003 Bytes

Versions: 4

Compression:

Stored size: 1003 Bytes

Contents

# coding: utf-8
# 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.

# frozen_string_literal: true

module PacketGen
  module Header
    class Dot11

      # IEEE 802.11 information element
      #
      # An {Element} is a piece of data contained in a Dot11 management frame.
      # @author Sylvain Daubert
      class Element < Types::TLV
        # 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
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
packetgen-2.6.0 lib/packetgen/header/dot11/element.rb
packetgen-2.5.2 lib/packetgen/header/dot11/element.rb
packetgen-2.5.1 lib/packetgen/header/dot11/element.rb
packetgen-2.5.0 lib/packetgen/header/dot11/element.rb