Module: Rex::Proto::NTP::Constants::Mode

Defined in:
lib/rex/proto/ntp/constants.rb

Constant Summary collapse

SYMMETRIC_ACTIVE =
1
SYMMETRIC_PASSIVE =
2
CLIENT =
3
SERVER =
4
BROADCAST_SERVER =
5
BROADCAST_CLIENT =
6

Class Method Summary collapse

Class Method Details

.name(value) ⇒ Object



20
21
22
# File 'lib/rex/proto/ntp/constants.rb', line 20

def self.name(value)
  constants.select { |c| c.upcase == c }.find { |c| const_get(c) == value }
end