diff options
author | Simon THOBY <git@nightmared.fr> | 2022-02-21 23:21:55 +0100 |
---|---|---|
committer | Simon THOBY <git@nightmared.fr> | 2022-08-26 21:52:00 +0200 |
commit | e918159bf7478652e9da41f4a873c6e46b3733ca (patch) | |
tree | 68592482fc3709d60daf8aae3be7bde73893d31a /src/lib.rs | |
parent | 5d207e951f39531a97619a3bdf900f7aa16efb9e (diff) |
delete the dependency on libmnl
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |