Skip to content

Commit ca3ed0c

Browse files
feat: Added ifconf struct
1 parent b806bf2 commit ca3ed0c

File tree

1 file changed

+13
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+13
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,19 @@ s_no_extra_traits! {
792792
pub ifr_ifru: ::sockaddr,
793793
}
794794

795+
pub union __c_anonymous_ifc_ifcu {
796+
ifcu_buf: *mut ::c_char,
797+
ifcu_req: *mut ::ifreq,
798+
}
799+
800+
/* Structure used in SIOCGIFCONF request. Used to retrieve interface
801+
configuration for machine (useful for programs which must know all
802+
networks accessible). */
803+
pub struct ifconf {
804+
pub ifc_len: ::c_int, /* Size of buffer. */
805+
pub ifc_ifcu: __c_anonymous_ifc_ifcu,
806+
}
807+
795808
pub struct hwtstamp_config {
796809
pub flags: ::c_int,
797810
pub tx_type: ::c_int,

0 commit comments

Comments
 (0)