File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ STRUCT!{struct IP_MREQ {
63
63
imr_interface: IN_ADDR ,
64
64
} }
65
65
pub type PIP_MREQ = * mut IP_MREQ ;
66
+ STRUCT ! { struct IP_MREQ_SOURCE {
67
+ imr_multiaddr: IN_ADDR ,
68
+ imr_sourceaddr: IN_ADDR ,
69
+ imr_interface: IN_ADDR ,
70
+ } }
71
+ pub type PIP_MREQ_SOURCE = * mut IP_MREQ_SOURCE ;
66
72
pub const IPV6_HOPOPTS : c_int = 1 ;
67
73
pub const IPV6_HDRINCL : c_int = 2 ;
68
74
pub const IPV6_UNICAST_HOPS : c_int = 4 ;
Original file line number Diff line number Diff line change @@ -2138,6 +2138,8 @@ fn shared_ws2ipdef() {
2138
2138
assert_eq!(align_of::<SOCKADDR_INET>(), 4);
2139
2139
assert_eq!(size_of::<IP_MREQ>(), 8);
2140
2140
assert_eq!(align_of::<IP_MREQ>(), 4);
2141
+ assert_eq!(size_of::<IP_MREQ_SOURCE>(), 12);
2142
+ assert_eq!(align_of::<IP_MREQ_SOURCE>(), 4);
2141
2143
assert_eq!(size_of::<IPV6_MREQ>(), 20);
2142
2144
assert_eq!(align_of::<IPV6_MREQ>(), 4);
2143
2145
assert_eq!(size_of::<IN_PKTINFO>(), 8);
Original file line number Diff line number Diff line change @@ -2155,6 +2155,8 @@ fn shared_ws2ipdef() {
2155
2155
assert_eq!(align_of::<SOCKADDR_INET>(), 4);
2156
2156
assert_eq!(size_of::<IP_MREQ>(), 8);
2157
2157
assert_eq!(align_of::<IP_MREQ>(), 4);
2158
+ assert_eq!(size_of::<IP_MREQ_SOURCE>(), 12);
2159
+ assert_eq!(align_of::<IP_MREQ_SOURCE>(), 4);
2158
2160
assert_eq!(size_of::<IPV6_MREQ>(), 20);
2159
2161
assert_eq!(align_of::<IPV6_MREQ>(), 4);
2160
2162
assert_eq!(size_of::<IN_PKTINFO>(), 8);
You can’t perform that action at this time.
0 commit comments