11 unstable releases

new 0.6.0 Sep 13, 2021
0.5.0 Nov 12, 2020
0.4.0 Jul 29, 2019
0.3.0 Jan 20, 2019
0.1.2 Nov 16, 2016

#1 in #ntp

Download history 1600/week @ 2021-05-24 3513/week @ 2021-05-31 1526/week @ 2021-06-07 1141/week @ 2021-06-14 2383/week @ 2021-06-21 1272/week @ 2021-06-28 1489/week @ 2021-07-05 888/week @ 2021-07-12 1402/week @ 2021-07-19 1246/week @ 2021-07-26 1042/week @ 2021-08-02 1257/week @ 2021-08-09 937/week @ 2021-08-16 1556/week @ 2021-08-23 1848/week @ 2021-08-30 2557/week @ 2021-09-06

6,226 downloads per month
Used in suricata

MIT/Apache

13KB
262 lines

ntp-parser

License: MIT Apache License 2.0 Build Status Crates.io Version

Overview

ntp-parser is a parser for the NTP protocol.

This crate mostly serves as a demo/example crate for network protocol parsers written using nom, and nom-derive.

Changes

0.6.0

  • Upgrade to nom 7

0.5.0

  • Upgrade to nom 6
  • Convert all macro-based parsers to functions
  • Convert to nom-derive
  • Add support for NTP version 3, update function names to match version

0.4.0

  • Set edition to 2018
  • Upgrade to nom 5

0.3.0

  • Upgrade to nom 4

0.2.1

  • Fix parsing of extensions

0.2.0

  • Use newtype for NtpMode, remove enum_primitive
  • Switch license to MIT + APLv2

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~1.3–1.8MB
~39K SLoC