Skip to content

Commit 3aed43e

Browse files
psumberaAkhilTThomas
authored andcommitted
Add missing networking support for Solaris
(backport <rust-lang#3717>) (cherry picked from commit 7d2eb94)
1 parent ff2e147 commit 3aed43e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@ s! {
132132
pub ipi6_ifindex: c_uint,
133133
}
134134

135+
pub struct in_pktinfo {
136+
pub ipi_ifindex: ::c_uint,
137+
pub ipi_spec_dst: ::in_addr,
138+
pub ipi_addr: ::in_addr,
139+
}
140+
141+
pub struct in6_pktinfo {
142+
pub ipi6_addr: ::in6_addr,
143+
pub ipi6_ifindex: ::c_uint,
144+
}
145+
135146
pub struct passwd {
136147
pub pw_name: *mut c_char,
137148
pub pw_passwd: *mut c_char,

0 commit comments

Comments
 (0)