Skip to content

Commit

Permalink
Remove the old NTPSymmetric model
Browse files Browse the repository at this point in the history
It is no longer in use by any modules. It has been superseded by
NTPHeader.
  • Loading branch information
zeroSteiner committed Dec 19, 2024
1 parent 29d8697 commit 537585f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/rex/proto/ntp/modes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,6 @@ def records
end
end

class NTPSymmetric < BinData::Record
alias size num_bytes
endian :big
bit2 :li
bit3 :version, initial_value: 3
bit3 :mode
uint8 :stratum
uint8 :poll
uint8 :precision
uint32 :root_delay
uint32 :root_dispersion
uint32 :reference_id
uint64 :reference_timestamp
uint64 :origin_timestamp
uint64 :receive_timestamp
uint64 :transmit_timestamp
rest :payload
end

def ntp_control(version, operation, payload = nil)
n = NTPControl.new
n.version = version
Expand Down

0 comments on commit 537585f

Please sign in to comment.