aboutsummaryrefslogtreecommitdiff
path: root/rustables/examples
diff options
context:
space:
mode:
authorlafleur <lafleur@boum.org>2021-11-07 14:19:37 +0100
committerlafleur <lafleur@boum.org>2021-11-07 14:19:37 +0100
commit1e33e3ab0790d977add329e9686b4b9e5570ba3c (patch)
treeeb55ce7ff42be89be640ce2330e2503349267798 /rustables/examples
parent55d9bf885e009953a0001062b2b60c21e8322a31 (diff)
call bindgen on build in rustables
Diffstat (limited to 'rustables/examples')
-rw-r--r--rustables/examples/add-rules.rs2
-rw-r--r--rustables/examples/filter-ethernet.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/rustables/examples/add-rules.rs b/rustables/examples/add-rules.rs
index 4fea491..3aae7ee 100644
--- a/rustables/examples/add-rules.rs
+++ b/rustables/examples/add-rules.rs
@@ -37,7 +37,7 @@
//! ```
use ipnetwork::{IpNetwork, Ipv4Network};
-use rustables::{nft_expr, rustables_sys::libc, Batch, Chain, FinalizedBatch, ProtoFamily, Rule, Table};
+use rustables::{nft_expr, sys::libc, Batch, Chain, FinalizedBatch, ProtoFamily, Rule, Table};
use std::{
ffi::{self, CString},
io,
diff --git a/rustables/examples/filter-ethernet.rs b/rustables/examples/filter-ethernet.rs
index 23be8a1..b16c49e 100644
--- a/rustables/examples/filter-ethernet.rs
+++ b/rustables/examples/filter-ethernet.rs
@@ -22,7 +22,7 @@
//! # nft delete table inet example-filter-ethernet
//! ```
-use rustables::{nft_expr, rustables_sys::libc, Batch, Chain, FinalizedBatch, ProtoFamily, Rule, Table};
+use rustables::{nft_expr, sys::libc, Batch, Chain, FinalizedBatch, ProtoFamily, Rule, Table};
use std::{ffi::CString, io, rc::Rc};
const TABLE_NAME: &str = "example-filter-ethernet";