Skip to content

Commit c53ddd8

Browse files
hashemmm96tgross35
authored andcommitted
linux: add ifinfomsg struct from rtnetlink.h
(backport <#5012>) (cherry picked from commit 8bada26)
1 parent 0ef904d commit c53ddd8

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
@@ -4148,6 +4148,7 @@ if_freenameindex
41484148
if_nameindex
41494149
ifaddrs
41504150
ifconf
4151+
ifinfomsg
41514152
ifreq
41524153
in6_ifreq
41534154
in6_pktinfo

src/unix/linux_like/linux/mod.rs

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

12591269
cfg_if! {

0 commit comments

Comments
 (0)