lib/packetgen/plugin/ike/ts.rb
# Get human readable protocol name. If protocol ID is 0, an empty string
# is returned.
# @return [String]
Get human readable protocol name. If protocol ID is 0, an empty string
is returned.
Get human readable protocol name . If protocol ID is 0 an empty string is returned .
def human_protocol
        if protocol.zero?
          ''
        else
          PacketGen::Proto.getprotobynumber(protocol) || protocol.to_s
        end
      end
def human_protocol if protocol . zero? '' else PacketGen :: Proto . getprotobynumber ( protocol ) || protocol . to_s end end
Get human readable protocol name.
Get human readable protocol name .
None
String