Class ICMP
The ICMP Layer, inherits from Base_Object
Tables
-
ICMP.new_args
-
Constructor arguments
Fields:
- type
num
the ICMP type
- code
num
the ICMP code
- id
num
the ICMP identifier
- seqno
num
the ICMP seq. number
- ptr
num
the ICMP pointer
- len
num
the ICMP length
- mtu
num
the ICMP mtu
- gw
string
the ICMP gateway
Methods
-
ICMP:new ([args])
-
Constructor for an ICMP Layer
Parameters:
- args
table
arguments, all grouped inside a table, see new_args
(optional)
Returns:
ICMP
a new ICMP object
Usage:
ICMP.new{
type=1,
code=2,
id=37,
seqno=17
}
-
ICMP:type (type)
-
Set the ICMP type
Parameters:
-
ICMP:code (code)
-
Set the ICMP code
Parameters:
-
ICMP:id (id)
-
Set the ICMP identifier
Parameters:
-
ICMP:seqno (seqno)
-
Set the ICMP sequence number
Parameters:
-
ICMP:ptr (ptr)
-
Set the ICMP pointer
Parameters:
-
ICMP:gw (gw)
-
Set the ICMP gateway
Parameters:
- gw
string
the IP address of the gateway
-
ICMP:len (len)
-
Set the ICMP length
Parameters:
-
ICMP:mtu (mtu)
-
Set the ICMP MTU
Parameters: