Class IPOption

Options for the IP Layer, inherits from Base_Object

Tables

IPOption.new_args IPOption constructor arguments

Methods

IPOption:new ([args]) Create a 'blank' IPOption
IPOption:new_nop () Create a new NOP Option (Option=1)
IPOption:new_eol () Create a new EOL Option (Option=0)
IPOption:new_ssrr (ips) Create a new SSRR Option
IPOption:new_lsrr (ips) Create a new LSRR Option
IPOption:new_rr (n) Create a new RR Option
IPOption:new_traceroute (orig_ip) Create a new Traceroute Option


Tables

IPOption.new_args
IPOption constructor arguments

Fields:

  • copy num
  • class num
  • option num
  • length num

Methods

IPOption:new ([args])
Create a 'blank' IPOption

Parameters:

IPOption:new_nop ()
Create a new NOP Option (Option=1)

Returns:

    IPOption
IPOption:new_eol ()
Create a new EOL Option (Option=0)

Returns:

    IPOption
IPOption:new_ssrr (ips)
Create a new SSRR Option

Parameters:

  • ips table a list of IPs

Returns:

    IPOption

Usage:

    IPOption.new{'1.1.1.1', '2.2.2.2', '3.3.3.3'}
IPOption:new_lsrr (ips)
Create a new LSRR Option

Parameters:

  • ips table a list of IPs

Returns:

    IPOption
IPOption:new_rr (n)
Create a new RR Option

Parameters:

  • n number the number of NULL(0.0.0.0) addresses to put in the RR

Returns:

    IPOption
IPOption:new_traceroute (orig_ip)
Create a new Traceroute Option

Parameters:

  • orig_ip string the original IP

Returns:

    IPOption
generated by LDoc 1.4.6 Last updated 2017-10-04 11:48:45