class PacketGen::Header::RadioTap

Radiotap header (see www.radiotap.org/) @author Sylvain Daubert @since 1.4.0

Public Instance Methods

calc_length() click to toggle source

Calculate header length @return [Integer] calculated length @since 2.1.3

# File lib/packetgen/header/dot11.rb, line 93
def calc_length
  self[:length].value = self.sz - self[:body].sz
end
parse?() click to toggle source

Check version field @see [Base#parse?]

# File lib/packetgen/header/dot11.rb, line 86
def parse?
  version.zero? && (length >= 8)
end
to_w(iface) click to toggle source

send RadioTap packet on wire. Dot11 FCS trailer should be set. @param [String] iface interface name @return [void]

# File lib/packetgen/header/dot11.rb, line 100
def to_w(iface)
  Inject.inject(iface: iface, data: self)
end