# File lib/nmap/parser.rb, line 577 def tcp_reason(portnum) port = tcp_port(portnum) return nil if port.nil? port.reason end