Class IPv6
The IPv6 Layer, inherits from Base_Object
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:
-
IPv6:flowlabel (flowlabel)
-
Set the flow label
Parameters:
-
IPv6:hoplimit (hops)
-
Set the hop limit (=TTL)
Parameters:
-
IPv6:payloadlen ()
-
Return the number of bytes after the IP header
Returns:
num
bytes