aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-11-18 16:11:13 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-11-18 16:11:13 +0100
commitcf217b2f954cb2973b38e4dbd35600a08ee9d766 (patch)
tree8966c1ee47b3e8b19519276d7c65d3b39cede360
parent10d1d0bd402ccd8ee83444379ec32d750222459e (diff)
define ioctls ourselves
-rw-r--r--Cargo.lock14
-rw-r--r--Cargo.toml2
-rw-r--r--src/ioctls.rs6
-rw-r--r--src/lib.rs2
4 files changed, 12 insertions, 12 deletions
diff --git a/Cargo.lock b/Cargo.lock
index de694a8..06e6af5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -347,16 +347,8 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "ioctl-sys"
version = "0.8.0"
-source = "git+https://github.com/rsdsl/ioctl.git#f12f6346a60572eadeda9b44f41f9ea75052ae91"
-
-[[package]]
-name = "ioctls"
-version = "0.6.1"
-source = "git+https://github.com/rsdsl/ioctl.git#f12f6346a60572eadeda9b44f41f9ea75052ae91"
-dependencies = [
- "ioctl-sys",
- "libc",
-]
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8bd11f3a29434026f5ff98c730b668ba74b1033637b8817940b54d040696133c"
[[package]]
name = "itoa"
@@ -696,7 +688,7 @@ name = "rsdsl_pppoe3"
version = "0.1.0"
dependencies = [
"async-io",
- "ioctls",
+ "ioctl-sys",
"libc",
"mac_address",
"md5",
diff --git a/Cargo.toml b/Cargo.toml
index be7ed85..dbf8f1e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,7 +7,7 @@ edition = "2021"
[dependencies]
async-io = "2.1.0"
-ioctls = { git = "https://github.com/rsdsl/ioctl.git" }
+ioctl-sys = "0.8.0"
libc = "0.2.149"
mac_address = "1.1.5"
md5 = "0.7.0"
diff --git a/src/ioctls.rs b/src/ioctls.rs
new file mode 100644
index 0000000..36213ee
--- /dev/null
+++ b/src/ioctls.rs
@@ -0,0 +1,6 @@
+use ioctl_sys::ioctl;
+
+ioctl!(write pppiocattchan with b't', 56; ::std::os::raw::c_int);
+ioctl!(write pppiocconnect with b't', 58; ::std::os::raw::c_int);
+ioctl!(read pppiocgchan with b't', 55; ::std::os::raw::c_int);
+ioctl!(readwrite pppiocnewunit with b't', 87; ::std::os::raw::c_int);
diff --git a/src/lib.rs b/src/lib.rs
index 0d53d66..7104d46 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,8 @@
mod error;
pub use error::*;
+mod ioctls;
+
pub mod proto;
pub use proto::*;