Skip to content

Commit d1dd244

Browse files
authored
Merge pull request #1736 from JohnTitor/rtentry
Add `rtentry` to musl
2 parents cd71bb6 + 7d75ee2 commit d1dd244

File tree

1 file changed

+21
-0
lines changed
  • src/unix/linux_like/linux/musl

1 file changed

+21
-0
lines changed

src/unix/linux_like/linux/musl/mod.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,27 @@ s! {
117117
__nsub2: ::size_t,
118118
__padding2: ::c_char,
119119
}
120+
121+
pub struct rtentry {
122+
pub rt_pad1: ::c_ulong,
123+
pub rt_dst: ::sockaddr,
124+
pub rt_gateway: ::sockaddr,
125+
pub rt_genmask: ::sockaddr,
126+
pub rt_flags: ::c_ushort,
127+
pub rt_pad2: ::c_short,
128+
pub rt_pad3: ::c_ulong,
129+
pub rt_tos: ::c_uchar,
130+
pub rt_class: ::c_uchar,
131+
#[cfg(target_pointer_width = "64")]
132+
pub rt_pad4: [::c_short; 3usize],
133+
#[cfg(not(target_pointer_width = "64"))]
134+
pub rt_pad4: [::c_short; 1usize],
135+
pub rt_metric: ::c_short,
136+
pub rt_dev: *mut ::c_char,
137+
pub rt_mtu: ::c_ulong,
138+
pub rt_window: ::c_ulong,
139+
pub rt_irtt: ::c_ushort,
140+
}
120141
}
121142

122143
s_no_extra_traits! {

0 commit comments

Comments
 (0)