diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-04-14 13:44:42 +0900 |
---|---|---|
committer | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-04-14 23:35:01 +0900 |
commit | 7d75ee2a5145b6c8eb7acbe7ce3c2d398e5a6c87 (patch) | |
tree | 7bc9397d3c581c5d6867600d157575ccdd867680 /src | |
parent | e69c5eaa9f27b77329898458cf1fde50387725e2 (diff) | |
download | rust-libc-7d75ee2a5145b6c8eb7acbe7ce3c2d398e5a6c87.tar.gz |
Add `rtentry` to musl as well
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/linux_like/linux/musl/mod.rs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/musl/mod.rs b/src/unix/linux_like/linux/musl/mod.rs index fda4720894..730d4b9b7c 100644 --- a/src/unix/linux_like/linux/musl/mod.rs +++ b/src/unix/linux_like/linux/musl/mod.rs @@ -117,6 +117,27 @@ s! { __nsub2: ::size_t, __padding2: ::c_char, } + + pub struct rtentry { + pub rt_pad1: ::c_ulong, + pub rt_dst: ::sockaddr, + pub rt_gateway: ::sockaddr, + pub rt_genmask: ::sockaddr, + pub rt_flags: ::c_ushort, + pub rt_pad2: ::c_short, + pub rt_pad3: ::c_ulong, + pub rt_tos: ::c_uchar, + pub rt_class: ::c_uchar, + #[cfg(target_pointer_width = "64")] + pub rt_pad4: [::c_short; 3usize], + #[cfg(not(target_pointer_width = "64"))] + pub rt_pad4: [::c_short; 1usize], + pub rt_metric: ::c_short, + pub rt_dev: *mut ::c_char, + pub rt_mtu: ::c_ulong, + pub rt_window: ::c_ulong, + pub rt_irtt: ::c_ushort, + } } s_no_extra_traits! { |