Class: FFI::PCap::FileHeader

Inherits:
Struct
  • Object
show all
Includes:
DRY::StructHelper
Defined in:
lib/ffi/pcap/file_header.rb

Instance Method Summary collapse

Instance Method Details



22
23
24
# File 'lib/ffi/pcap/file_header.rb', line 22

def datalink
  @data_link ||= DataLink.new(self.linktype)
end

#versionObject



26
27
28
# File 'lib/ffi/pcap/file_header.rb', line 26

def version
  "#{self.version_major}.#{self.version_minor}"
end