Class: By2::Models::Udphdr
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- By2::Models::Udphdr
- Defined in:
- lib/by2/models/udphdr.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.dst_port(port) ⇒ Object
17 18 19 |
# File 'lib/by2/models/udphdr.rb', line 17 def self.dst_port(port) where("udphdr.udp_dport = ?", port) end |
.src_or_dst_port(port) ⇒ Object
9 10 11 |
# 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) ⇒ Object
13 14 15 |
# File 'lib/by2/models/udphdr.rb', line 13 def self.src_port(port) where("udphdr.udp_sport = ?", port) end |
Instance Method Details
#dport ⇒ Object
21 22 23 |
# File 'lib/by2/models/udphdr.rb', line 21 def dport udp_dport end |
#sport ⇒ Object
25 26 27 |
# File 'lib/by2/models/udphdr.rb', line 25 def sport udp_sport end |