aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tunnel.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tunnel.rs b/src/tunnel.rs
index cad5563..0599239 100644
--- a/src/tunnel.rs
+++ b/src/tunnel.rs
@@ -1,13 +1,13 @@
use crate::{Error, Result};
-use std::ffi::CString;
+use std::ffi::{c_ulong, CString};
use std::io;
use std::net::{Ipv4Addr, Ipv6Addr};
use bitfield::bitfield;
-const SIOCADDTUNNEL: u64 = 0x89F0 + 1;
-const SIOCDELTUNNEL: u64 = 0x89F0 + 2;
+const SIOCADDTUNNEL: c_ulong = 0x89F0 + 1;
+const SIOCDELTUNNEL: c_ulong = 0x89F0 + 2;
/// A handle to a 6in4 tunnel. The interface is automatically deleted on drop.
#[derive(Debug)]