diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-10-15 11:20:57 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-10-15 11:20:57 +0200 |
commit | 8537cd92e53ab3915fc1a7488215ff2cd86f7285 (patch) | |
tree | 56675c3da9ac0a0d3a4f85a6cfcaab8fc6d43cef | |
parent | 752d8860fe41246681d95047b641b12668923c9d (diff) |
change type of SIOC constants to c_ulong
-rw-r--r-- | src/tunnel.rs | 6 |
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)] |