We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400b741 commit c244d16Copy full SHA for c244d16
src/new/nto/net/if_.rs
@@ -1,17 +1,5 @@
1
use crate::prelude::*;
2
3
-s! {
4
- pub struct ifreq {
5
- /// if name, e.g. "en0"
6
- pub ifr_name: [c_char; crate::IFNAMSIZ],
7
- pub ifr_ifru: __c_anonymous_ifr_ifru,
8
- }
9
- pub struct ifreq_buffer {
10
- pub length: size_t,
11
- pub buffer: *mut c_void,
12
13
-}
14
-
15
s_no_extra_traits! {
16
pub union __c_anonymous_ifr_ifru {
17
pub ifru_addr: crate::sockaddr,
@@ -30,4 +18,15 @@ s_no_extra_traits! {
30
18
pub ifru_fib: c_uint,
31
19
pub ifru_vlan_pcp: c_uchar,
32
20
}
21
+
22
+ pub struct ifreq {
23
+ /// if name, e.g. "en0"
24
+ pub ifr_name: [c_char; crate::IFNAMSIZ],
25
+ pub ifr_ifru: __c_anonymous_ifr_ifru,
26
+ }
27
28
+ pub struct ifreq_buffer {
29
+ pub length: size_t,
+ pub buffer: *mut c_void,
33
0 commit comments