Skip to content

Commit

Permalink
Add Elem counter field
Browse files Browse the repository at this point in the history
Since nftables 0.9.5  there is a counter per element available
  • Loading branch information
marcinosypka committed Jan 17, 2024
1 parent 1932342 commit 80561b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ use serde::{Deserialize, Serialize};
use std::collections::HashSet;

use crate::stmt::Statement;
use crate::stmt::Counter;

#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
Expand Down Expand Up @@ -358,6 +359,7 @@ pub struct Elem {
pub timeout: u32,
pub expires: u32,
pub comment: String,
pub counter: Option<Counter>,
}

#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize)]
Expand Down

0 comments on commit 80561b9

Please sign in to comment.