Class: Racket::L2::EightOTwoDotThree

Inherits:
RacketPart
  • Object
show all
Defined in:
lib/racket/l2/eightotwodotthree.rb

Overview

802.3 Ethernet. Should always be followed by an LLC header

Instance Attribute Summary

Attributes inherited from RacketPart

#autofix

Instance Method Summary collapse

Methods inherited from RacketPart

#autofix?, #initialize, #pretty

Constructor Details

This class inherits a constructor from Racket::RacketPart

Instance Method Details

#fix!Object

Fix this layer up prior to sending. For 802.3, just adjusts length



42
43
44
# File 'lib/racket/l2/eightotwodotthree.rb', line 42

def fix!
  self.length = self.payload.length
end