Skip to content

Commit 081027a

Browse files
mikemiles-devMichael Mileusnich
and
Michael Mileusnich
authored
unix_secs and unix_nsecs are now pub (#11)
Co-authored-by: Michael Mileusnich <[email protected]>
1 parent c18b879 commit 081027a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
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.1.2"
4+
version = "0.1.3"
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.1.3
2+
* unix_secs and unix_nsecs for V5 are now pub.
3+
14
# 0.1.2
25
* Added Cisco to README.md
36
* Fixed some IPFIX Fields not being correctly mapped.

src/static_versions/v5.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ pub struct Header {
4444
pub sys_up_time: Duration,
4545
/// Current count of seconds since 0000 UTC 1970
4646
#[nom(Map = "|i| Duration::from_secs(i.into())", Parse = "be_u32")]
47-
unix_secs: Duration,
47+
pub unix_secs: Duration,
4848
/// Residual nanoseconds since 0000 UTC 1970
4949
#[nom(Map = "|i| Duration::from_nanos(i.into())", Parse = "be_u32")]
50-
unix_nsecs: Duration,
50+
pub unix_nsecs: Duration,
5151
/// Sequence counter of total flows seen
5252
pub flow_sequence: u32,
5353
/// Type of flow-switching engine

0 commit comments

Comments
 (0)