Class: Racket::L3::IPv6
- Inherits:
-
RacketPart
- Object
- BitStruct
- RacketPart
- Racket::L3::IPv6
- Defined in:
- lib/racket/l3/ipv6.rb
Overview
RFC2460
Instance Attribute Summary
Attributes inherited from RacketPart
Instance Method Summary collapse
-
#fix! ⇒ Object
Adjust plen to match the payload.
-
#initialize(*args) ⇒ IPv6
constructor
A new instance of IPv6.
Methods inherited from RacketPart
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 |