Class PacketFu::EthOui
In: lib/packetfu/eth.rb
Parent: Struct.new(:b0, :b1, :b2, :b3, :b4, :b5, :local, :multicast, :oui)

EthOui is the Organizationally Unique Identifier portion of a MAC address, used in EthHeader.

See the OUI list at standards.ieee.org/regauth/oui/oui.txt

Header Definition

 Fixnum   :b0
 Fixnum   :b1
 Fixnum   :b2
 Fixnum   :b3
 Fixnum   :b4
 Fixnum   :b5
 Fixnum   :local
 Fixnum   :multicast
 Int16    :oui,       Default: 0x1ac5 :)

Methods

new   read   to_s  

Public Class methods

EthOui is unusual in that the bit values do not enjoy StructFu typing.

Public Instance methods

Reads a string to populate the object.

Returns the object in string form.

[Validate]