forked from gluxon/wireguard-uapi-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API changes: - impl_var!() removed in 0.6.0. - Trait Nl removed in 0.6.0. - Stream{Read,Write}Buffer have been obsoleted. - There's an enum IflaInfo for IFLA_INFO_* defines. - NlPayload type for Genlmsghdr payload. - Track NlSocketHandle API changes (::connect() over ::open()/::bind()). - Simplified header deserialization via FromBytesWithInput trait. - The asize() member function disappeared.
- Loading branch information
Showing
12 changed files
with
138 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
use neli::{consts::genl::Cmd, impl_var}; | ||
use neli::consts::genl::Cmd; | ||
use neli::neli_enum; | ||
|
||
// https://github.com/WireGuard/WireGuard/blob/62b335b56cc99312ccedfa571500fbef3756a623/src/uapi/wireguard.h#L137 | ||
impl_var!( | ||
pub WgCmd, u8, | ||
GetDevice => 0, | ||
SetDevice => 1 | ||
); | ||
#[neli_enum(serialized_type = "u8")] | ||
pub enum WgCmd { | ||
GetDevice = 0, | ||
SetDevice = 1, | ||
} | ||
|
||
impl Cmd for WgCmd {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.