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
Methods
- IPOption:new ([args])
-
Create a 'blank' IPOption
Parameters:
- IPOption:new_nop ()
-
Create a new NOP Option (Option=1)
Returns:
- IPOption:new_eol ()
-
Create a new EOL Option (Option=0)
Returns:
- IPOption:new_ssrr (ips)
-
Create a new SSRR Option
Parameters:
- ips table a list of IPs
Returns:
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: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:new_traceroute (orig_ip)
-
Create a new Traceroute Option
Parameters:
- orig_ip string the original IP
Returns: