class Scriptroute::ICMPmaskreq
mask request doesn’t appear to be useful.
Attributes
icmp_id[R]
@return [Fixnum]
icmp_seq[RW]
@return [Fixnum]
Public Class Methods
new(payload_len = 0)
click to toggle source
Calls superclass method
Scriptroute::ICMP::new
# File lib/scriptroute/packets.rb, line 809 def initialize(payload_len = 0) if( payload_len < 0) then raise "payload length must be 0" end if( payload_len > 0) then raise "payload length must be 0" end @ip_payload_len = payload_len + 12 @icmp_id = 678 @icmp_seq = 1 super(ICMP_MASKREQ) end
Public Instance Methods
marshal()
click to toggle source
@return [String] The packet in string form
Calls superclass method
Scriptroute::ICMP#marshal
# File lib/scriptroute/packets.rb, line 818 def marshal super + [ @icmp_id, @icmp_seq, @icmp_otime, @icmp_rtime, @icmp_ttime ].pack("nnNNN") end