Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AF_ALG constants and structures #1261

Merged
merged 17 commits into from
Feb 20, 2019
Merged
1 change: 0 additions & 1 deletion src/unix/notbsd/linux/other/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,6 @@ pub const SOL_PNPIPE: ::c_int = 275;
pub const SOL_RDS: ::c_int = 276;
pub const SOL_IUCV: ::c_int = 277;
pub const SOL_CAIF: ::c_int = 278;
pub const SOL_ALG: ::c_int = 279;
glebpom marked this conversation as resolved.
Show resolved Hide resolved
pub const SOL_NFC: ::c_int = 280;
pub const SOL_XDP: ::c_int = 283;

Expand Down
26 changes: 13 additions & 13 deletions src/unix/notbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,6 @@ s! {
pub sin6_scope_id: u32,
}

pub struct sockaddr_alg {
pub salg_family: sa_family_t,
pub salg_type: [u8; 14],
pub salg_feat: u32,
pub salg_mask: u32,
pub salg_name: [u8; 64],
}

pub struct af_alg_iv {
pub ivlen: u32,
pub iv: [u8; 0],
}

pub struct addrinfo {
pub ai_flags: ::c_int,
pub ai_family: ::c_int,
Expand Down Expand Up @@ -253,6 +240,19 @@ s_no_extra_traits!{
__ss_pad2: [u8; 128 - 2 * 8],
}

pub struct sockaddr_alg {
gnzlbg marked this conversation as resolved.
Show resolved Hide resolved
pub salg_family: sa_family_t,
pub salg_type: [::c_uchar; 14],
pub salg_feat: u32,
pub salg_mask: u32,
pub salg_name: [::c_uchar; 64],
}

pub struct af_alg_iv {
pub ivlen: u32,
pub iv: [::c_uchar; 0],
}

pub struct utsname {
pub sysname: [::c_char; 65],
pub nodename: [::c_char; 65],
Expand Down