aboutsummaryrefslogtreecommitdiff
path: root/src/expr/log.rs
diff options
context:
space:
mode:
authorSimon THOBY <git@nightmared.fr>2022-12-03 22:53:23 +0100
committerSimon THOBY <git@nightmared.fr>2022-12-05 22:40:01 +0100
commitedb440a952320ea4f021c1d7063ff6d5f2f13818 (patch)
tree5c18e7f1fabdcef8e140920ea75bfd0d0b400bd0 /src/expr/log.rs
parent4b60b3cd41f5198c47a260ce69abf4c15b60ca92 (diff)
Macros: introduce a macro to simplify enums
Diffstat (limited to 'src/expr/log.rs')
-rw-r--r--src/expr/log.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr/log.rs b/src/expr/log.rs
index 3c72257..80bb7a9 100644
--- a/src/expr/log.rs
+++ b/src/expr/log.rs
@@ -8,7 +8,7 @@ use crate::sys::{NFTA_LOG_GROUP, NFTA_LOG_PREFIX};
/// A Log expression will log all packets that match the rule.
pub struct Log {
#[field(NFTA_LOG_GROUP)]
- group: u32,
+ group: u16,
#[field(NFTA_LOG_PREFIX)]
prefix: String,
}