Class IPv6

The IPv6 Layer, inherits from Base_Object

Tables

IPv6.new_args Constructor arguments

Methods

IPv6:new ([args]) Constructor for an IPv6 Layer
IPv6:source ([ip]) Get/Set the source address
IPv6:dest ([ip]) Get/Set the destination address
IPv6:tc (tc) Set the traffic class
IPv6:flowlabel (flowlabel) Set the flow label
IPv6:hoplimit (hops) Set the hop limit (=TTL)
IPv6:payloadlen () Return the number of bytes after the IP header


Tables

IPv6.new_args
Constructor arguments

Fields:

  • dst string the IPv6 dst
  • tc num the IPv6 traffic class
  • flowlabel num the IPv6 flowlabel
  • hoplimit num the IPv6 hop limit

Methods

IPv6:new ([args])
Constructor for an IPv6 Layer

Parameters:

  • args table arguments, all grouped inside a table, see new_args (optional)

Returns:

    IPv6 a new IPv6 object

Usage:

     IPv6.new{
    	dst="2001:db8:1234::1",
    	hoplimit=4
     }
IPv6:source ([ip])
Get/Set the source address

Parameters:

  • ip string set the source ip to ip (optional)

Returns:

    string ip
IPv6:dest ([ip])
Get/Set the destination address

Parameters:

  • ip string set the destination address to ip (optional)

Returns:

    string ip
IPv6:tc (tc)
Set the traffic class

Parameters:

  • tc num
IPv6:flowlabel (flowlabel)
Set the flow label

Parameters:

  • flowlabel num
IPv6:hoplimit (hops)
Set the hop limit (=TTL)

Parameters:

  • hops num
IPv6:payloadlen ()
Return the number of bytes after the IP header

Returns:

    num bytes
generated by LDoc 1.4.3 Last updated 2015-05-04 17:26:47