• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..17-Nov-2021-

assets/H03-May-2022-

src/H17-Nov-2021-1,022762

tests/H17-Nov-2021-251220

.cargo-checksum.jsonH A D03-May-202289 11

.travis.ymlH A D17-Nov-2021391 1817

Cargo.tomlH A D17-Nov-20211.3 KiB3934

LICENSE-APACHEH A D17-Nov-202110.6 KiB202169

LICENSE-MITH A D17-Nov-20211 KiB2622

README.mdH A D17-Nov-20212 KiB6440

README.md

1# snmp-parser
2
3[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE-MIT)
4[![Apache License 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](./LICENSE-APACHE)
5[![Build Status](https://travis-ci.org/rusticata/snmp-parser.svg?branch=master)](https://travis-ci.org/rusticata/snmp-parser)
6[![Crates.io Version](https://img.shields.io/crates/v/snmp-parser.svg)](https://crates.io/crates/snmp-parser)
7
8<!-- cargo-sync-readme start -->
9
10# SNMP Parser
11
12A SNMP parser, implemented with the [nom](https://github.com/Geal/nom)
13parser combinator framework.
14
15The goal of this parser is to implement SNMP messages analysis, for example
16to use rules from a network IDS.
17
18To read a message, different functions must be used depending on the expected message
19version. The main functions for parsing are [`parse_snmp_v1`](snmp/fn.parse_snmp_v1.html),
20[`parse_snmp_v2c`](snmp/fn.parse_snmp_v2c.html) and
21[`parse_snmp_v3`](snmpv3/fn.parse_snmp_v3.html).
22If you don't know the version of the message and want to parse a generic SNMP message,
23use the [`parse_snmp_generic_message`](fn.parse_snmp_generic_message.html) function.
24
25The code is available on [Github](https://github.com/rusticata/snmp-parser)
26and is part of the [Rusticata](https://github.com/rusticata) project.
27
28<!-- cargo-sync-readme end -->
29
30## Changes
31
32### 0.6.0
33
34- Upgrade to der-parser 4
35
36### 0.5.2
37
38- Use `parse_ber_u32` from der-parser crate
39
40### 0.5.1
41
42- Fix parsing: use BER parsing so DER constraints are not applied
43
44### 0.5.0
45
46- Upgrade to nom 5 and der-parser 3
47
48## License
49
50Licensed under either of
51
52 * Apache License, Version 2.0
53   ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
54 * MIT license
55   ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
56
57at your option.
58
59## Contribution
60
61Unless you explicitly state otherwise, any contribution intentionally submitted
62for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
63dual licensed as above, without any additional terms or conditions.
64