class By2::Models::Udphdr
Public Class Methods
dst_port(port)
click to toggle source
# File lib/by2/models/udphdr.rb, line 17 def self.dst_port(port) where("udphdr.udp_dport = ?", port) end
src_or_dst_port(port)
click to toggle source
# File lib/by2/models/udphdr.rb, line 9 def self.src_or_dst_port(port) where("udphdr.udp_sport = ? or udphdr.udp_dport = ?", port, port) end
src_port(port)
click to toggle source
# File lib/by2/models/udphdr.rb, line 13 def self.src_port(port) where("udphdr.udp_sport = ?", port) end
Public Instance Methods
dport()
click to toggle source
# File lib/by2/models/udphdr.rb, line 21 def dport udp_dport end
sport()
click to toggle source
# File lib/by2/models/udphdr.rb, line 25 def sport udp_sport end