Class PacketFu::TcpEcn
In: lib/packetfu/tcp.rb
Parent: Struct.new(:n, :c, :e)

Implements the Explict Congestion Notification for TCPHeader.

Header Definition

 Fixnum (1 bit)  :n
 Fixnum (1 bit)  :c
 Fixnum (1 bit)  :e

Methods

new   read   to_i  

Included Modules

StructFu

Public Class methods

Public Instance methods

Reads a string to populate the object.

Returns the TcpEcn field as an integer… even though it‘s going to be split across a byte boundary.

[Validate]