11 unstable releases

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

#970 in Network programming

Download history 1799/week @ 2024-08-08 2230/week @ 2024-08-15 2182/week @ 2024-08-22 3520/week @ 2024-08-29 2556/week @ 2024-09-05 2419/week @ 2024-09-12 2243/week @ 2024-09-19 2871/week @ 2024-09-26 3540/week @ 2024-10-03 3445/week @ 2024-10-10 3230/week @ 2024-10-17 3557/week @ 2024-10-24 3679/week @ 2024-10-31 2465/week @ 2024-11-07 2604/week @ 2024-11-14 2671/week @ 2024-11-21

11,793 downloads per month
Used in suricata

MIT/Apache

14KB
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

~2.5MB
~57K SLoC