diff options
author | Himbeer <himbeer@disroot.org> | 2025-03-18 14:41:35 +0100 |
---|---|---|
committer | Himbeer <himbeer@disroot.org> | 2025-03-18 14:41:35 +0100 |
commit | 1319d2e1da02be5842f2b20d50209c99fb6b8df2 (patch) | |
tree | 63415f816ef1b184d7cc8edc032cb2124712376c /src/blocking.rs | |
parent | fd5925655015d6be9f3cfe7b6927f1bc270af28c (diff) |
Add utilities for rule (policy routing) creation and deletion
Diffstat (limited to 'src/blocking.rs')
-rw-r--r-- | src/blocking.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/blocking.rs b/src/blocking.rs index 7cc90d3..7c47b5b 100644 --- a/src/blocking.rs +++ b/src/blocking.rs @@ -107,3 +107,15 @@ pub mod route { blockify!(route_add6, r: Route6); } } + +#[cfg(feature = "rule")] +pub mod rule { + use super::Connection; + + use crate::rule::Rule; + + impl Connection { + blockify!(rule_add, r: Rule); + blockify!(rule_del, r: Rule); + } +} |