diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-18 16:11:13 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-18 16:11:13 +0100 |
commit | cf217b2f954cb2973b38e4dbd35600a08ee9d766 (patch) | |
tree | 8966c1ee47b3e8b19519276d7c65d3b39cede360 | |
parent | 10d1d0bd402ccd8ee83444379ec32d750222459e (diff) |
define ioctls ourselves
-rw-r--r-- | Cargo.lock | 14 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/ioctls.rs | 6 | ||||
-rw-r--r-- | src/lib.rs | 2 |
4 files changed, 12 insertions, 12 deletions
@@ -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", @@ -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); @@ -1,6 +1,8 @@ mod error; pub use error::*; +mod ioctls; + pub mod proto; pub use proto::*; |