Class PacketFu::Octets
In: lib/packetfu/ip.rb
Parent: Struct.new(:o1, :o2, :o3, :o4)

Octets implements the addressing scheme for IP.

Header Definition

 Int8 :o1
 Int8 :o2
 Int8 :o3
 Int8 :o4

Methods

new   read   read_quad   to_i   to_s   to_x  

Included Modules

StructFu

Public Class methods

Public Instance methods

Reads a string to populate the object.

Set the IP Address by reading a dotted-quad address.

Returns an address in numerical format.

Returns the object in string form.

Returns an address in dotted-quad format.

[Validate]