Return the NTP message, not the string

bug/bundler_fix
Jon Hart 2014-08-08 21:39:48 -07:00
parent 00452b41c9
commit c48cf48d85
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@ module NTP
n.payload_size = payload.size
n.payload = payload
end
n.to_s
n
end
def self.ntp_private(version, implementation, request_code, payload = nil)
@ -110,14 +110,14 @@ module NTP
n.implementation = implementation
n.request_code = request_code
n.payload = payload if payload
n.to_s
n
end
def self.ntp_generic(version, mode)
n = NTPGeneric.new
n.version = version
n.mode = mode
n.to_s
n
end
# Parses the given message and provides a description about the NTP message inside