aboutsummaryrefslogtreecommitdiff
path: root/nftnl/src/lib.rs
diff options
context:
space:
mode:
authorDavid Lönnhager <david.l@mullvad.net>2020-05-27 13:46:27 +0200
committerDavid Lönnhager <david.l@mullvad.net>2020-05-27 13:46:27 +0200
commit343727fdede3d7c2e6f5338d2267be41295859f1 (patch)
tree5279811faba137994c5175ac3b78ab7448721f3a /nftnl/src/lib.rs
parent39982629ee8c4bc129f3a80b844d9d3d9486d5d7 (diff)
parentaccce17a2becb7310a91c8632551c48c49b67554 (diff)
Merge branch 'add-reject-expr'
Diffstat (limited to 'nftnl/src/lib.rs')
-rw-r--r--nftnl/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/nftnl/src/lib.rs b/nftnl/src/lib.rs
index e47a600..31375bf 100644
--- a/nftnl/src/lib.rs
+++ b/nftnl/src/lib.rs
@@ -87,7 +87,7 @@ pub enum MsgType {
}
/// Denotes a protocol. Used to specify which protocol a table or set belongs to.
-#[derive(Debug, Copy, Clone)]
+#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[repr(u16)]
pub enum ProtoFamily {
Unspec = libc::NFPROTO_UNSPEC as u16,