summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Färnstrand <linus@mullvad.net>2018-03-13 10:43:47 +0100
committerLinus Färnstrand <linus@mullvad.net>2018-04-11 09:18:41 +0200
commitc8e9232f3dfb9016a560acc20b8440a3ca6697ac (patch)
tree9b02d965516f1d52fb160766b068610f1c82e676
parent846ecb00ffee751b9cd00827d8dd81d5e4d16d03 (diff)
downloadrust-libc-c8e9232f3dfb9016a560acc20b8440a3ca6697ac.tar.gz
Make fields in all netlink related structs public
-rw-r--r--src/unix/notbsd/android/mod.rs46
-rw-r--r--src/unix/notbsd/linux/mips/mod.rs40
-rw-r--r--src/unix/notbsd/linux/mod.rs6
-rw-r--r--src/unix/notbsd/linux/other/mod.rs40
4 files changed, 66 insertions, 66 deletions
diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs
index 22043fdbfd..239770edd4 100644
--- a/src/unix/notbsd/android/mod.rs
+++ b/src/unix/notbsd/android/mod.rs
@@ -187,47 +187,47 @@ s! {
}
pub struct genlmsghdr {
- cmd: u8,
- version: u8,
- reserved: u16,
+ pub cmd: u8,
+ pub version: u8,
+ pub reserved: u16,
}
pub struct nlmsghdr {
- nlmsg_len: u32,
- nlmsg_type: u16,
- nlmsg_flags: u16,
- nlmsg_seq: u32,
- nlmsg_pid: u32,
+ pub nlmsg_len: u32,
+ pub nlmsg_type: u16,
+ pub nlmsg_flags: u16,
+ pub nlmsg_seq: u32,
+ pub nlmsg_pid: u32,
}
pub struct nlmsgerr {
- error: ::c_int,
- msg: nlmsghdr,
+ pub error: ::c_int,
+ pub msg: nlmsghdr,
}
pub struct nl_pktinfo {
- group: u32,
+ pub group: u32,
}
pub struct nl_mmap_req {
- nm_block_size: ::c_uint,
- nm_block_nr: ::c_uint,
- nm_frame_size: ::c_uint,
- nm_frame_nr: ::c_uint,
+ pub nm_block_size: ::c_uint,
+ pub nm_block_nr: ::c_uint,
+ pub nm_frame_size: ::c_uint,
+ pub nm_frame_nr: ::c_uint,
}
pub struct nl_mmap_hdr {
- nm_status: ::c_uint,
- nm_len: ::c_uint,
- nm_group: u32,
- nm_pid: u32,
- nm_uid: u32,
- nm_gid: u32,
+ pub nm_status: ::c_uint,
+ pub nm_len: ::c_uint,
+ pub nm_group: u32,
+ pub nm_pid: u32,
+ pub nm_uid: u32,
+ pub nm_gid: u32,
}
pub struct nlattr {
- nla_len: u16,
- nla_type: u16,
+ pub nla_len: u16,
+ pub nla_type: u16,
}
}
diff --git a/src/unix/notbsd/linux/mips/mod.rs b/src/unix/notbsd/linux/mips/mod.rs
index f3d19d33bd..833a3210cc 100644
--- a/src/unix/notbsd/linux/mips/mod.rs
+++ b/src/unix/notbsd/linux/mips/mod.rs
@@ -41,41 +41,41 @@ s! {
}
pub struct nlmsghdr {
- nlmsg_len: u32,
- nlmsg_type: u16,
- nlmsg_flags: u16,
- nlmsg_seq: u32,
- nlmsg_pid: u32,
+ pub nlmsg_len: u32,
+ pub nlmsg_type: u16,
+ pub nlmsg_flags: u16,
+ pub nlmsg_seq: u32,
+ pub nlmsg_pid: u32,
}
pub struct nlmsgerr {
- error: ::c_int,
- msg: nlmsghdr,
+ pub error: ::c_int,
+ pub msg: nlmsghdr,
}
pub struct nl_pktinfo {
- group: u32,
+ pub group: u32,
}
pub struct nl_mmap_req {
- nm_block_size: ::c_uint,
- nm_block_nr: ::c_uint,
- nm_frame_size: ::c_uint,
- nm_frame_nr: ::c_uint,
+ pub nm_block_size: ::c_uint,
+ pub nm_block_nr: ::c_uint,
+ pub nm_frame_size: ::c_uint,
+ pub nm_frame_nr: ::c_uint,
}
pub struct nl_mmap_hdr {
- nm_status: ::c_uint,
- nm_len: ::c_uint,
- nm_group: u32,
- nm_pid: u32,
- nm_uid: u32,
- nm_gid: u32,
+ pub nm_status: ::c_uint,
+ pub nm_len: ::c_uint,
+ pub nm_group: u32,
+ pub nm_pid: u32,
+ pub nm_uid: u32,
+ pub nm_gid: u32,
}
pub struct nlattr {
- nla_len: u16,
- nla_type: u16,
+ pub nla_len: u16,
+ pub nla_type: u16,
}
}
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs
index e495dc2d18..65b977e5fe 100644
--- a/src/unix/notbsd/linux/mod.rs
+++ b/src/unix/notbsd/linux/mod.rs
@@ -485,9 +485,9 @@ s! {
}
pub struct genlmsghdr {
- cmd: u8,
- version: u8,
- reserved: u16,
+ pub cmd: u8,
+ pub version: u8,
+ pub reserved: u16,
}
}
diff --git a/src/unix/notbsd/linux/other/mod.rs b/src/unix/notbsd/linux/other/mod.rs
index f147576e14..a95359224f 100644
--- a/src/unix/notbsd/linux/other/mod.rs
+++ b/src/unix/notbsd/linux/other/mod.rs
@@ -180,41 +180,41 @@ s! {
}
pub struct nlmsghdr {
- nlmsg_len: u32,
- nlmsg_type: u16,
- nlmsg_flags: u16,
- nlmsg_seq: u32,
- nlmsg_pid: u32,
+ pub nlmsg_len: u32,
+ pub nlmsg_type: u16,
+ pub nlmsg_flags: u16,
+ pub nlmsg_seq: u32,
+ pub nlmsg_pid: u32,
}
pub struct nlmsgerr {
- error: ::c_int,
- msg: nlmsghdr,
+ pub error: ::c_int,
+ pub msg: nlmsghdr,
}
pub struct nl_pktinfo {
- group: u32,
+ pub group: u32,
}
pub struct nl_mmap_req {
- nm_block_size: ::c_uint,
- nm_block_nr: ::c_uint,
- nm_frame_size: ::c_uint,
- nm_frame_nr: ::c_uint,
+ pub nm_block_size: ::c_uint,
+ pub nm_block_nr: ::c_uint,
+ pub nm_frame_size: ::c_uint,
+ pub nm_frame_nr: ::c_uint,
}
pub struct nl_mmap_hdr {
- nm_status: ::c_uint,
- nm_len: ::c_uint,
- nm_group: u32,
- nm_pid: u32,
- nm_uid: u32,
- nm_gid: u32,
+ pub nm_status: ::c_uint,
+ pub nm_len: ::c_uint,
+ pub nm_group: u32,
+ pub nm_pid: u32,
+ pub nm_uid: u32,
+ pub nm_gid: u32,
}
pub struct nlattr {
- nla_len: u16,
- nla_type: u16,
+ pub nla_len: u16,
+ pub nla_type: u16,
}
}