Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call "ioctl" in Rust? And interface the Linux "tun" driver

How can I the function "ioctl" in Rust? Should I find a wrapper for it somewhere? Is there a de-facto wrapper? Or maybe it's already included in the standard Rust library? I've not found it, though.

Or, more generally, I need an interface the Linux "tun" driver.

like image 365
Diime Avatar asked Sep 11 '25 04:09

Diime


1 Answers

You can find ioctl in nix, which contains convenience wrapper of *nix functionalities.

like image 78
WiSaGaN Avatar answered Sep 13 '25 07:09

WiSaGaN