class Nmap::Parser::Host::Traceroute
This holds information on a traceroute, such as the port and protocol used and an array of responsive hops
Attributes
port[R]
Port number used during traceroute
proto[R]
Protocol used during traceroute
Public Instance Methods
hop(ttl)
click to toggle source
Returns the Hop object for the given TTL
# File lib/nmap/parser.rb, line 1357 def hop(ttl) @hops.find { |hop| hop.ttl == ttl.to_i } end
hops() { |hop| ... }
click to toggle source
Returns an array of Hop objects, which are each a responsive hop, and yields them each to a block if one if given.
# File lib/nmap/parser.rb, line 1363 def hops @hops.each { |hop| yield hop } if block_given? @hops end