Skip to content

Commit bc4ec6f

Browse files
committed
overwrite
1 parent 0fdcc91 commit bc4ec6f

File tree

1 file changed

+185
-14
lines changed

1 file changed

+185
-14
lines changed

src/rs/ffi/win_bindings.rs

Lines changed: 185 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ pub const QUIC_PARAM_CONN_ORIG_DEST_CID: u32 = 83886104;
205205
pub const QUIC_PARAM_CONN_SEND_DSCP: u32 = 83886105;
206206
pub const QUIC_PARAM_CONN_NETWORK_STATISTICS: u32 = 83886112;
207207
pub const QUIC_PARAM_CONN_CLOSE_ASYNC: u32 = 83886106;
208+
pub const QUIC_PARAM_CONN_ADD_LOCAL_ADDRESS: u32 = 83886107;
209+
pub const QUIC_PARAM_CONN_REMOVE_LOCAL_ADDRESS: u32 = 83886108;
210+
pub const QUIC_PARAM_CONN_PATH_STATUS: u32 = 83886109;
208211
pub const QUIC_PARAM_TLS_HANDSHAKE_INFO: u32 = 100663296;
209212
pub const QUIC_PARAM_TLS_NEGOTIATED_ALPN: u32 = 100663297;
210213
pub const QUIC_PARAM_TLS_SCHANNEL_CONTEXT_ATTRIBUTE_W: u32 = 117440512;
@@ -3509,23 +3512,56 @@ impl QUIC_SETTINGS__bindgen_ty_1__bindgen_ty_1 {
35093512
}
35103513
}
35113514
#[inline]
3515+
pub fn MultipathEnabled(&self) -> u64 {
3516+
unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 1u8) as u64) }
3517+
}
3518+
#[inline]
3519+
pub fn set_MultipathEnabled(&mut self, val: u64) {
3520+
unsafe {
3521+
let val: u64 = ::std::mem::transmute(val);
3522+
self._bitfield_1.set(46usize, 1u8, val as u64)
3523+
}
3524+
}
3525+
#[inline]
3526+
pub unsafe fn MultipathEnabled_raw(this: *const Self) -> u64 {
3527+
unsafe {
3528+
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
3529+
::std::ptr::addr_of!((*this)._bitfield_1),
3530+
46usize,
3531+
1u8,
3532+
) as u64)
3533+
}
3534+
}
3535+
#[inline]
3536+
pub unsafe fn set_MultipathEnabled_raw(this: *mut Self, val: u64) {
3537+
unsafe {
3538+
let val: u64 = ::std::mem::transmute(val);
3539+
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
3540+
::std::ptr::addr_of_mut!((*this)._bitfield_1),
3541+
46usize,
3542+
1u8,
3543+
val as u64,
3544+
)
3545+
}
3546+
}
3547+
#[inline]
35123548
pub fn RESERVED(&self) -> u64 {
3513-
unsafe { ::std::mem::transmute(self._bitfield_1.get(46usize, 18u8) as u64) }
3549+
unsafe { ::std::mem::transmute(self._bitfield_1.get(47usize, 17u8) as u64) }
35143550
}
35153551
#[inline]
35163552
pub fn set_RESERVED(&mut self, val: u64) {
35173553
unsafe {
35183554
let val: u64 = ::std::mem::transmute(val);
3519-
self._bitfield_1.set(46usize, 18u8, val as u64)
3555+
self._bitfield_1.set(47usize, 17u8, val as u64)
35203556
}
35213557
}
35223558
#[inline]
35233559
pub unsafe fn RESERVED_raw(this: *const Self) -> u64 {
35243560
unsafe {
35253561
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
35263562
::std::ptr::addr_of!((*this)._bitfield_1),
3527-
46usize,
3528-
18u8,
3563+
47usize,
3564+
17u8,
35293565
) as u64)
35303566
}
35313567
}
@@ -3535,8 +3571,8 @@ impl QUIC_SETTINGS__bindgen_ty_1__bindgen_ty_1 {
35353571
let val: u64 = ::std::mem::transmute(val);
35363572
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
35373573
::std::ptr::addr_of_mut!((*this)._bitfield_1),
3538-
46usize,
3539-
18u8,
3574+
47usize,
3575+
17u8,
35403576
val as u64,
35413577
)
35423578
}
@@ -3589,6 +3625,7 @@ impl QUIC_SETTINGS__bindgen_ty_1__bindgen_ty_1 {
35893625
XdpEnabled: u64,
35903626
QTIPEnabled: u64,
35913627
ReservedRioEnabled: u64,
3628+
MultipathEnabled: u64,
35923629
RESERVED: u64,
35933630
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
35943631
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@@ -3798,7 +3835,11 @@ impl QUIC_SETTINGS__bindgen_ty_1__bindgen_ty_1 {
37983835
let ReservedRioEnabled: u64 = unsafe { ::std::mem::transmute(ReservedRioEnabled) };
37993836
ReservedRioEnabled as u64
38003837
});
3801-
__bindgen_bitfield_unit.set(46usize, 18u8, {
3838+
__bindgen_bitfield_unit.set(46usize, 1u8, {
3839+
let MultipathEnabled: u64 = unsafe { ::std::mem::transmute(MultipathEnabled) };
3840+
MultipathEnabled as u64
3841+
});
3842+
__bindgen_bitfield_unit.set(47usize, 17u8, {
38023843
let RESERVED: u64 = unsafe { ::std::mem::transmute(RESERVED) };
38033844
RESERVED as u64
38043845
});
@@ -4134,23 +4175,56 @@ impl QUIC_SETTINGS__bindgen_ty_2__bindgen_ty_1 {
41344175
}
41354176
}
41364177
#[inline]
4178+
pub fn MultipathEnabled(&self) -> u64 {
4179+
unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u64) }
4180+
}
4181+
#[inline]
4182+
pub fn set_MultipathEnabled(&mut self, val: u64) {
4183+
unsafe {
4184+
let val: u64 = ::std::mem::transmute(val);
4185+
self._bitfield_1.set(9usize, 1u8, val as u64)
4186+
}
4187+
}
4188+
#[inline]
4189+
pub unsafe fn MultipathEnabled_raw(this: *const Self) -> u64 {
4190+
unsafe {
4191+
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
4192+
::std::ptr::addr_of!((*this)._bitfield_1),
4193+
9usize,
4194+
1u8,
4195+
) as u64)
4196+
}
4197+
}
4198+
#[inline]
4199+
pub unsafe fn set_MultipathEnabled_raw(this: *mut Self, val: u64) {
4200+
unsafe {
4201+
let val: u64 = ::std::mem::transmute(val);
4202+
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
4203+
::std::ptr::addr_of_mut!((*this)._bitfield_1),
4204+
9usize,
4205+
1u8,
4206+
val as u64,
4207+
)
4208+
}
4209+
}
4210+
#[inline]
41374211
pub fn ReservedFlags(&self) -> u64 {
4138-
unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 55u8) as u64) }
4212+
unsafe { ::std::mem::transmute(self._bitfield_1.get(10usize, 54u8) as u64) }
41394213
}
41404214
#[inline]
41414215
pub fn set_ReservedFlags(&mut self, val: u64) {
41424216
unsafe {
41434217
let val: u64 = ::std::mem::transmute(val);
4144-
self._bitfield_1.set(9usize, 55u8, val as u64)
4218+
self._bitfield_1.set(10usize, 54u8, val as u64)
41454219
}
41464220
}
41474221
#[inline]
41484222
pub unsafe fn ReservedFlags_raw(this: *const Self) -> u64 {
41494223
unsafe {
41504224
::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
41514225
::std::ptr::addr_of!((*this)._bitfield_1),
4152-
9usize,
4153-
55u8,
4226+
10usize,
4227+
54u8,
41544228
) as u64)
41554229
}
41564230
}
@@ -4160,8 +4234,8 @@ impl QUIC_SETTINGS__bindgen_ty_2__bindgen_ty_1 {
41604234
let val: u64 = ::std::mem::transmute(val);
41614235
<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
41624236
::std::ptr::addr_of_mut!((*this)._bitfield_1),
4163-
9usize,
4164-
55u8,
4237+
10usize,
4238+
54u8,
41654239
val as u64,
41664240
)
41674241
}
@@ -4177,6 +4251,7 @@ impl QUIC_SETTINGS__bindgen_ty_2__bindgen_ty_1 {
41774251
XdpEnabled: u64,
41784252
QTIPEnabled: u64,
41794253
ReservedRioEnabled: u64,
4254+
MultipathEnabled: u64,
41804255
ReservedFlags: u64,
41814256
) -> __BindgenBitfieldUnit<[u8; 8usize]> {
41824257
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
@@ -4218,7 +4293,11 @@ impl QUIC_SETTINGS__bindgen_ty_2__bindgen_ty_1 {
42184293
let ReservedRioEnabled: u64 = unsafe { ::std::mem::transmute(ReservedRioEnabled) };
42194294
ReservedRioEnabled as u64
42204295
});
4221-
__bindgen_bitfield_unit.set(9usize, 55u8, {
4296+
__bindgen_bitfield_unit.set(9usize, 1u8, {
4297+
let MultipathEnabled: u64 = unsafe { ::std::mem::transmute(MultipathEnabled) };
4298+
MultipathEnabled as u64
4299+
});
4300+
__bindgen_bitfield_unit.set(10usize, 54u8, {
42224301
let ReservedFlags: u64 = unsafe { ::std::mem::transmute(ReservedFlags) };
42234302
ReservedFlags as u64
42244303
});
@@ -5399,6 +5478,9 @@ pub union QUIC_CONNECTION_EVENT__bindgen_ty_1 {
53995478
pub RELIABLE_RESET_NEGOTIATED: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_17,
54005479
pub ONE_WAY_DELAY_NEGOTIATED: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_18,
54015480
pub NETWORK_STATISTICS: QUIC_NETWORK_STATISTICS,
5481+
pub PATH_ADDED: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19,
5482+
pub PATH_REMOVED: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20,
5483+
pub PATH_STATUS_CHANGED: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21,
54025484
}
54035485
#[repr(C)]
54045486
#[derive(Debug, Copy, Clone)]
@@ -5902,6 +5984,95 @@ const _: () = {
59025984
)
59035985
- 1usize];
59045986
};
5987+
#[repr(C)]
5988+
#[derive(Debug, Copy, Clone)]
5989+
pub struct QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19 {
5990+
pub PeerAddress: *const QUIC_ADDR,
5991+
pub LocalAddress: *const QUIC_ADDR,
5992+
pub PathId: u32,
5993+
}
5994+
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5995+
const _: () = {
5996+
["Size of QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19"]
5997+
[::std::mem::size_of::<QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19>() - 24usize];
5998+
["Alignment of QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19"]
5999+
[::std::mem::align_of::<QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19>() - 8usize];
6000+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19::PeerAddress"][::std::mem::offset_of!(
6001+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19,
6002+
PeerAddress
6003+
)
6004+
- 0usize];
6005+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19::LocalAddress"][::std::mem::offset_of!(
6006+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19,
6007+
LocalAddress
6008+
)
6009+
- 8usize];
6010+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19::PathId"][::std::mem::offset_of!(
6011+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_19,
6012+
PathId
6013+
) - 16usize];
6014+
};
6015+
#[repr(C)]
6016+
#[derive(Debug, Copy, Clone)]
6017+
pub struct QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20 {
6018+
pub PeerAddress: *const QUIC_ADDR,
6019+
pub LocalAddress: *const QUIC_ADDR,
6020+
pub PathId: u32,
6021+
}
6022+
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6023+
const _: () = {
6024+
["Size of QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20"]
6025+
[::std::mem::size_of::<QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20>() - 24usize];
6026+
["Alignment of QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20"]
6027+
[::std::mem::align_of::<QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20>() - 8usize];
6028+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20::PeerAddress"][::std::mem::offset_of!(
6029+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20,
6030+
PeerAddress
6031+
)
6032+
- 0usize];
6033+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20::LocalAddress"][::std::mem::offset_of!(
6034+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20,
6035+
LocalAddress
6036+
)
6037+
- 8usize];
6038+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20::PathId"][::std::mem::offset_of!(
6039+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_20,
6040+
PathId
6041+
) - 16usize];
6042+
};
6043+
#[repr(C)]
6044+
#[derive(Debug, Copy, Clone)]
6045+
pub struct QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21 {
6046+
pub PeerAddress: *const QUIC_ADDR,
6047+
pub LocalAddress: *const QUIC_ADDR,
6048+
pub PathId: u32,
6049+
pub IsActive: BOOLEAN,
6050+
}
6051+
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6052+
const _: () = {
6053+
["Size of QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21"]
6054+
[::std::mem::size_of::<QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21>() - 24usize];
6055+
["Alignment of QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21"]
6056+
[::std::mem::align_of::<QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21>() - 8usize];
6057+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21::PeerAddress"][::std::mem::offset_of!(
6058+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21,
6059+
PeerAddress
6060+
)
6061+
- 0usize];
6062+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21::LocalAddress"][::std::mem::offset_of!(
6063+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21,
6064+
LocalAddress
6065+
)
6066+
- 8usize];
6067+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21::PathId"][::std::mem::offset_of!(
6068+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21,
6069+
PathId
6070+
) - 16usize];
6071+
["Offset of field: QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21::IsActive"][::std::mem::offset_of!(
6072+
QUIC_CONNECTION_EVENT__bindgen_ty_1__bindgen_ty_21,
6073+
IsActive
6074+
) - 20usize];
6075+
};
59056076
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
59066077
const _: () = {
59076078
["Size of QUIC_CONNECTION_EVENT__bindgen_ty_1"]

0 commit comments

Comments
 (0)