Class: Dot11::Radiotap

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Packet

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

Constructor Details

This class inherits a constructor from Dot11::Packet

Instance Attribute Details

#padObject

Returns the value of attribute pad.



5
6
7
# File 'lib/dot11/radiotap.rb', line 5

def pad
  @pad
end

#revisionObject

Returns the value of attribute revision.



5
6
7
# File 'lib/dot11/radiotap.rb', line 5

def revision
  @revision
end

#stuffObject

Returns the value of attribute stuff.



5
6
7
# File 'lib/dot11/radiotap.rb', line 5

def stuff
  @stuff
end

#stuff_lengthObject

Returns the value of attribute stuff_length.



5
6
7
# File 'lib/dot11/radiotap.rb', line 5

def stuff_length
  @stuff_length
end

Instance Method Details

#dataObject



7
8
9
# File 'lib/dot11/radiotap.rb', line 7

def data
  raise "This space intentionally left blank"
end

#payloadObject



18
19
20
21
22
# File 'lib/dot11/radiotap.rb', line 18

def payload
  return @payload if @payload

  @payload = Dot11.new(@rest)
end

#to_sObject



11
12
13
14
15
16
# File 'lib/dot11/radiotap.rb', line 11

def to_s
  "Radiotap\n" + 
  "-------------\n" + 
  "payload:\n" +
  payload.to_s.indent(6)
end