From Matt's Network Monitor
[edit] Description
The "ports" table contains all ports discovered as open or filtered for a particular host.
[edit] Fields
| Name
| Data Type
| Description
|
| port
| integer(6)
| The port number.
|
| protocol
| varchar(4)
| The protocol this port is used for (ex. "tcp").
|
| service
| varchar(32)
| The service this port is associated with (ex. "telnet")
|
| status
| integer(1)
| The current status for this port. (-1 = CLOSED, 0 = FILTERED, 1 = OPEN)
|
[edit] Relationships
[edit] Model Validation
validates_presence_of :port, :status, :protocol
validates_numericality_of :port, :only_integer => true
validates_inclusion_of :status, :in => -1..1