Represents a logical network route.
Initializes a route instance.
# File lib/rex/post/meterpreter/extensions/stdapi/net/route.rb, line 27 def initialize(subnet, netmask, gateway, interface='', metric=0) self.subnet = IPAddr.new_ntoh(subnet).to_s self.netmask = IPAddr.new_ntoh(netmask).to_s self.gateway = IPAddr.new_ntoh(gateway).to_s self.interface = interface self.metric = metric end
Generated with the Darkfish Rdoc Generator 2.