File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,16 @@ s! {
102
102
pub ai_next: * mut addrinfo,
103
103
}
104
104
105
+ pub struct ifaddrs {
106
+ pub ifa_next: * mut ifaddrs,
107
+ pub ifa_name: * mut :: c_char,
108
+ pub ifa_flags: :: c_uint,
109
+ pub ifa_addr: * mut :: sockaddr,
110
+ pub ifa_netmask: * mut :: sockaddr,
111
+ pub ifa_dstaddr: * mut :: sockaddr,
112
+ pub ida_data: * mut :: c_void,
113
+ }
114
+
105
115
pub struct fd_set {
106
116
// size for 1024 bits, and a fd_mask with size u32
107
117
fds_bits: [ fd_mask; 32 ] ,
@@ -1465,6 +1475,8 @@ extern "C" {
1465
1475
pub fn labs ( i : :: c_long ) -> :: c_long ;
1466
1476
pub fn rand ( ) -> :: c_int ;
1467
1477
pub fn srand ( seed : :: c_uint ) ;
1478
+ pub fn getifaddrs ( ifap : * mut * mut :: ifaddrs ) -> :: c_int ;
1479
+ pub fn freeifaddrs ( ifa : * mut :: ifaddrs ) ;
1468
1480
}
1469
1481
1470
1482
#[ link( name = "bsd" ) ]
You can’t perform that action at this time.
0 commit comments