aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorSimon THOBY <git@nightmared.fr>2022-02-21 23:21:55 +0100
committerSimon THOBY <git@nightmared.fr>2022-08-26 21:52:00 +0200
commite918159bf7478652e9da41f4a873c6e46b3733ca (patch)
tree68592482fc3709d60daf8aae3be7bde73893d31a /src/lib.rs
parent5d207e951f39531a97619a3bdf900f7aa16efb9e (diff)
delete the dependency on libmnl
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fbb96f3..5d40c5a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -119,7 +119,7 @@ pub use rule::Rule;
pub use rule::{get_rules_cb, list_rules_for_chain};
mod rule_methods;
-pub use rule_methods::{iface_index, Protocol, RuleMethods, Error as MatchError};
+pub use rule_methods::{iface_index, Error as MatchError, Protocol, RuleMethods};
pub mod set;
pub use set::Set;
@@ -155,6 +155,7 @@ pub enum ProtoFamily {
Ipv6 = libc::NFPROTO_IPV6 as u16,
DecNet = libc::NFPROTO_DECNET as u16,
}
+
#[derive(Error, Debug)]
#[error("Couldn't find a matching protocol")]
pub struct InvalidProtocolFamily;