class By2::Models::Tcphdr

Public Class Methods

dst_port(port) click to toggle source
# File lib/by2/models/tcphdr.rb, line 17
def self.dst_port(port)
  where("tcphdr.tcp_dport = ?",  port)
end
src_or_dst_port(port) click to toggle source
# File lib/by2/models/tcphdr.rb, line 9
def self.src_or_dst_port(port)
  where("tcphdr.tcp_sport = ? or tcphdr.tcp_dport = ?",  port, port)
end
src_port(port) click to toggle source
# File lib/by2/models/tcphdr.rb, line 13
def self.src_port(port)
  where("tcphdr.tcp_sport = ?",  port)
end

Public Instance Methods

dport() click to toggle source
# File lib/by2/models/tcphdr.rb, line 21
def dport
  tcp_dport
end
sport() click to toggle source
# File lib/by2/models/tcphdr.rb, line 25
def sport
  tcp_sport
end