Class ICMP

The ICMP Layer, inherits from Base_Object

Tables

ICMP.new_args Constructor arguments

Methods

ICMP:new ([args]) Constructor for an ICMP Layer
ICMP:type (type) Set the ICMP type
ICMP:code (code) Set the ICMP code
ICMP:id (id) Set the ICMP identifier
ICMP:seqno (seqno) Set the ICMP sequence number
ICMP:ptr (ptr) Set the ICMP pointer
ICMP:gw (gw) Set the ICMP gateway
ICMP:len (len) Set the ICMP length
ICMP:mtu (mtu) Set the ICMP MTU


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:

  • type num
ICMP:code (code)
Set the ICMP code

Parameters:

  • code num
ICMP:id (id)
Set the ICMP identifier

Parameters:

  • id num
ICMP:seqno (seqno)
Set the ICMP sequence number

Parameters:

  • seqno num
ICMP:ptr (ptr)
Set the ICMP pointer

Parameters:

  • ptr num
ICMP:gw (gw)
Set the ICMP gateway

Parameters:

  • gw string the IP address of the gateway
ICMP:len (len)
Set the ICMP length

Parameters:

  • len num
ICMP:mtu (mtu)
Set the ICMP MTU

Parameters:

  • mtu num
generated by LDoc 1.4.6 Last updated 2017-10-04 11:48:45