diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib.rs b/tests/lib.rs index 34fe16c..66c9ec9 100644 --- a/tests/lib.rs +++ b/tests/lib.rs @@ -1,7 +1,7 @@ #![allow(dead_code)] use std::ffi::CString; -use libc::{nlmsghdr, AF_UNIX}; +use libc::AF_UNIX; use rustables::nlmsg::{NfNetlinkObject, NfNetlinkWriter}; use rustables::parser::Nfgenmsg; //use rustables::set::SetKey; @@ -100,7 +100,9 @@ impl NetlinkExpr { } pub fn get_test_table() -> Table { - Table::new(TABLE_NAME, ProtoFamily::Inet) + Table::new(ProtoFamily::Inet) + .with_name(TABLE_NAME) + .with_flags(0u32) } pub fn get_test_table_raw_expr() -> NetlinkExpr { |