Skip to content

Commit 9e27ae4

Browse files
mikemiles-devMichael Mileusnich
and
Michael Mileusnich
authored
Re add static and variable versions as public (#49)
Co-authored-by: Michael Mileusnich <[email protected]>
1 parent cf35f90 commit 9e27ae4

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "netflow_parser"
33
description = "Parser for Netflow Cisco V5, V7, V9, IPFIX"
4-
version = "0.2.5"
4+
version = "0.2.6"
55
edition = "2021"
66
77
license = "MIT OR Apache-2.0"

RELEASES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# 0.2.6
2+
* Re-added static and variable versions as public.
3+
14
# 0.2.5
25
* Now Parsing V9 Mac Addresses correctly.
36
* More code reorganization. (Moved tests to tests.rs and added parsing.rs for majority of parsing).

SECURITY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7+
| 0.2.6 | :white_check_mark: |
78
| 0.2.5 | :white_check_mark: |
89
| 0.2.4 | :white_check_mark: |
910
| 0.2.3 | :white_check_mark: |

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
7373
mod parser;
7474
pub mod protocol;
75-
mod static_versions;
75+
pub mod static_versions;
7676
mod tests;
77-
mod variable_versions;
77+
pub mod variable_versions;
7878

7979
use parser::Parser;
8080
use static_versions::{v5::V5, v7::V7};

src/variable_versions/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl DataNumber {
7171
(i, FieldValue::Ip6Addr(ip_addr))
7272
}
7373
FieldDataType::MacAddr => {
74-
let (i, taken) = take(6 as usize)(remaining)?;
74+
let (i, taken) = take(6_usize)(remaining)?;
7575
let taken: &[u8; 6] = taken
7676
.try_into()
7777
.map_err(|_| NomErr::Error(NomError::new(remaining, ErrorKind::Fail)))?;

0 commit comments

Comments
 (0)