Class: PacketGen::Header::TCP

Inherits:
Object
  • Object
show all
Defined in:
lib/capra/packetgen_extensions.rb

Instance Method Summary collapse

Instance Method Details

#port?(int) ⇒ Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/capra/packetgen_extensions.rb', line 47

def port?(int)
  self.dport == int || self.dport == int
end