Class PacketFu::PcapPacket
In: lib/packetfu/pcap.rb
Parent: Struct.new(:endian, :timestamp, :incl_len, :orig_len, :data)

PcapPacket defines how individual packets are stored in a libpcap-formatted file.

Header Definition

Timestamp :timestamp Int32 :incl_len Int32 :orig_len String :data

Methods

init_fields   new   read   to_s  

Included Modules

StructFu

Public Class methods

Public Instance methods

Called by initialize to set the initial fields.

Reads a string to populate the object.

Returns the object in string form.

[Validate]