Skip to content

Commit 3173a58

Browse files
committed
linux: add ifinfomsg struct from rtnetlink.h
1 parent 4283feb commit 3173a58

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4095,6 +4095,7 @@ if_freenameindex
40954095
if_nameindex
40964096
ifaddrs
40974097
ifconf
4098+
ifinfomsg
40984099
ifreq
40994100
in6_ifreq
41004101
in6_pktinfo

src/unix/linux_like/linux/mod.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,16 @@ s! {
12531253
pub handle_type: c_int,
12541254
pub f_handle: [c_uchar; 0],
12551255
}
1256+
1257+
// include/uapi/linux/rtnetlink.h
1258+
pub struct ifinfomsg {
1259+
pub ifi_family: c_uchar,
1260+
__ifi_pad: Padding<c_uchar>,
1261+
pub ifi_type: c_ushort,
1262+
pub ifi_index: c_int,
1263+
pub ifi_flags: c_uint,
1264+
pub ifi_change: c_uint,
1265+
}
12561266
}
12571267

12581268
cfg_if! {

0 commit comments

Comments
 (0)