Class: Racket::L3::IPv6

Inherits:
RacketPart show all
Defined in:
lib/racket/l3/ipv6.rb

Overview

RFC2460

Instance Attribute Summary

Attributes inherited from RacketPart

#autofix

Instance Method Summary collapse

Methods inherited from RacketPart

#autofix?, #pretty

Constructor Details

#initialize(*args) ⇒ IPv6

Returns a new instance of IPv6.



52
53
54
55
56
# File 'lib/racket/l3/ipv6.rb', line 52

def initialize(*args)
  @headers = []
  super
  @autofix = true
end

Instance Method Details

#fix!Object

Adjust plen to match the payload



59
60
61
# File 'lib/racket/l3/ipv6.rb', line 59

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