Class Racket::L3::IPv6
In: lib/racket/l3/ipv6.rb  (CVS)
Parent: RacketPart

Internet Protocol Version 6 (IPV6) RFC2460

Methods

fix!   new  

Attributes

dst_ip    Destination IP address. Must be passed as an integer
flow    Flow label
nhead    Next header type
payload    Payload
plen    Payload length
src_ip    Source IP address. Must be passed as an integer
tclass    Traffic class
ttl    Hop limit
version    IP Version (defaults to 6)

Public Class methods

[Source]

# File lib/racket/l3/ipv6.rb, line 52
  def initialize(*args)
    @headers = []
    super
    @autofix = true
  end

Public Instance methods

Adjust plen to match the payload

[Source]

# File lib/racket/l3/ipv6.rb, line 59
  def fix!
    self.plen = self.payload.length
  end

[Validate]