class Scriptroute::EndOfOptions_option
The IPv4
EOOL option, which has a purpose.
Public Class Methods
new(flag_or_str)
click to toggle source
Calls superclass method
Scriptroute::IPv4option::new
# File lib/scriptroute/packets.rb, line 447 def initialize(flag_or_str) if(flag_or_str.is_a?(Fixnum)) then super(IPOPT_EOOL, 0, 1,nil) # maximum length is 40, but tcpdump whines. else @ipt_code = flag_or_str.unpack("c") @ipt_len=1 end end
Public Instance Methods
marshal()
click to toggle source
@return [String] the option in string form
# File lib/scriptroute/packets.rb, line 460 def marshal @ipt_code.pack("c") # oflw will be init'd to zero end
to_s()
click to toggle source
@return [String]
# File lib/scriptroute/packets.rb, line 456 def to_s ":ip_option_code=#{@ipt_code}" end