mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00

* 'ntp-rewrite' of https://github.com/mauropalumbo75/zeek: (25 commits) update tests baseline Apply requested changes: - file dpd.sig and TODO comments for signature protocol detection removed - missing doc field filled in events.bif - rename OpCode and ReqCode fields into op_code and req_code respectively - removed unnecessary child method in NTP.h/.cc - main.zeek and ntp-protocol.pac reformatted minor changes in the documentation fix some initializations fix wrong assignment of control key_id/crypto_checksum code clean up add extension fields parsing add extended mac field with 20 byte digest (+4 byte key id) update tests and add a new one for key_id and mac fix auth field (key_id and mac) in standard and control msg remove old NTP record in init-bare.zeek fix key_id and digest (WIP) fix wrong Assign with reference_id add tests for ntp protocol (finished) add tests for ntp protocol (WIP) fix problem with time vals add ntp records to init-bare.zeek update ntp analyzer to val_mgr extend and refact script-side of NTP analyzer extend and refactor several fields ...
15 lines
399 B
Text
15 lines
399 B
Text
module NTP;
|
|
|
|
export {
|
|
## The descriptions of the NTP mode value, as described
|
|
## in :rfc:`5905`, Figure 1
|
|
const modes: table[count] of string = {
|
|
[1] = "symmetric active",
|
|
[2] = "symmetric passive",
|
|
[3] = "client",
|
|
[4] = "server",
|
|
[5] = "broadcast server",
|
|
[6] = "broadcast client",
|
|
[7] = "reserved",
|
|
} &default=function(i: count):string { return fmt("unknown-%d", i); } &redef;
|
|
}
|