Class: Dot11::Dot11::Dot11AssoReq

Inherits:
Packet
  • Object
show all
Includes:
Dot11EltContainer
Defined in:
lib/dot11/dot11.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Dot11EltContainer

#/, #element_data, #element_to_s, #elements, #elements_by_id

Methods inherited from Packet

#=~, #initialize, new, older_new, #to_filter

Constructor Details

This class inherits a constructor from Dot11::Packet

Instance Attribute Details

#capabilitiesObject

Returns the value of attribute capabilities.



596
597
598
# File 'lib/dot11/dot11.rb', line 596

def capabilities
  @capabilities
end

#listen_intervalObject

Returns the value of attribute listen_interval.



596
597
598
# File 'lib/dot11/dot11.rb', line 596

def listen_interval
  @listen_interval
end

Instance Method Details

#dataObject



600
601
602
603
604
# File 'lib/dot11/dot11.rb', line 600

def data
  buffer = [capabilities, listen_interval].pack("nv")

  buffer += element_data
end

#to_sObject



606
607
608
609
610
611
612
613
# File 'lib/dot11/dot11.rb', line 606

def to_s
  "Dot11AssoReq\n" +
  "---------------\n" +
  "capabilities: ...... #{capabilities}\n" +
  "listen_interval: ... #{listen_interval}\n" + 
  "elements:\n" + 
  element_to_s.indent(7)    
end