https://github.com/rusticata/ntp-parser
NTP parser written in rust with nom
https://github.com/rusticata/ntp-parser
ntp ntp-parser parse rust
Last synced: 2 months ago
JSON representation
NTP parser written in rust with nom
- Host: GitHub
- URL: https://github.com/rusticata/ntp-parser
- Owner: rusticata
- License: apache-2.0
- Created: 2016-09-22T19:12:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-09-13T11:39:09.000Z (over 3 years ago)
- Last Synced: 2025-02-28T09:59:41.914Z (3 months ago)
- Topics: ntp, ntp-parser, parse, rust
- Language: Rust
- Size: 50.8 KB
- Stars: 19
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# ntp-parser
[](./LICENSE-MIT)
[](./LICENSE-APACHE)
[](https://travis-ci.org/rusticata/ntp-parser)
[](https://crates.io/crates/ntp-parser)## 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
* Apache License, Version 2.0
([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license
([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)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.