Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
normanmaurer committed Nov 20, 2023
1 parent b546c6a commit 2498b26
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions quiche/src/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ pub extern fn quiche_path_event_new(
peer_addr_len: &mut socklen_t,
) {
match ev {
PathEvent::New( local, peer) => {
PathEvent::New(local, peer) => {
*local_addr_len = std_addr_to_c(local, local_addr);

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1396 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
*peer_addr_len = std_addr_to_c(peer, peer_addr)

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1397 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
},
Expand All @@ -1408,7 +1408,7 @@ pub extern fn quiche_path_event_validated(
peer_addr_len: &mut socklen_t,
) {
match ev {
PathEvent::Validated( local, peer) => {
PathEvent::Validated(local, peer) => {
*local_addr_len = std_addr_to_c(local, local_addr);

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1412 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
*peer_addr_len = std_addr_to_c(peer, peer_addr)

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1413 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
},
Expand All @@ -1424,7 +1424,7 @@ pub extern fn quiche_path_event_failed_validation(
peer_addr_len: &mut socklen_t,
) {
match ev {
PathEvent::FailedValidation( local, peer) => {
PathEvent::FailedValidation(local, peer) => {
*local_addr_len = std_addr_to_c(local, local_addr);

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1428 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
*peer_addr_len = std_addr_to_c(peer, peer_addr)

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1429 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
},
Expand All @@ -1440,7 +1440,7 @@ pub extern fn quiche_path_event_closed(
peer_addr_len: &mut socklen_t,
) {
match ev {
PathEvent::Closed( local, peer) => {
PathEvent::Closed(local, peer) => {
*local_addr_len = std_addr_to_c(local, local_addr);

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1444 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
*peer_addr_len = std_addr_to_c(peer, peer_addr)

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1445 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
},
Expand All @@ -1452,13 +1452,15 @@ pub extern fn quiche_path_event_closed(
#[no_mangle]
pub extern fn quiche_path_event_reused_source_connection_id(
ev: &PathEvent, connection_id: &mut u64,
old_local_addr: &mut *const sockaddr_storage, old_local_addr_len: &mut socklen_t,
old_peer_addr: &mut *const sockaddr_storage, old_peer_addr_len: &mut socklen_t,
local_addr: &mut *const sockaddr_storage, local_addr_len: &mut socklen_t,
peer_addr: &mut *const sockaddr_storage, peer_addr_len: &mut socklen_t,
old_local_addr: &mut *const sockaddr_storage,
old_local_addr_len: &mut socklen_t,
old_peer_addr: &mut *const sockaddr_storage,
old_peer_addr_len: &mut socklen_t, local_addr: &mut *const sockaddr_storage,
local_addr_len: &mut socklen_t, peer_addr: &mut *const sockaddr_storage,
peer_addr_len: &mut socklen_t,
) {
match ev {
PathEvent::ReusedSourceConnectionId( id, old, new) => {
PathEvent::ReusedSourceConnectionId(id, old, new) => {
*connection_id = *id;
*old_local_addr_len = std_addr_to_c(&old.0, old_local_addr);

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1465 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
*old_peer_addr_len = std_addr_to_c(&old.1, old_peer_addr);

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche (boringssl-boring-crate)

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (armv7-unknown-linux-gnueabihf)

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (aarch64-unknown-linux-gnu)

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_multiarch (i686-unknown-linux-gnu)

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / android_ndk_lts (aarch64-linux-android)

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_windows (i686-pc-windows-msvc)

mismatched types

Check failure on line 1466 in quiche/src/ffi.rs

View workflow job for this annotation

GitHub Actions / quiche_macos

mismatched types
Expand All @@ -1471,11 +1473,11 @@ pub extern fn quiche_path_event_reused_source_connection_id(
}
}


#[no_mangle]
pub extern fn quiche_path_event_peer_migrated(
ev: &PathEvent, old_local_addr: &mut *const sockaddr_storage,
old_local_addr_len: &mut socklen_t, old_peer_addr: &mut *const sockaddr_storage,
old_local_addr_len: &mut socklen_t,
old_peer_addr: &mut *const sockaddr_storage,
old_peer_addr_len: &mut socklen_t, local_addr: &mut *const sockaddr_storage,
local_addr_len: &mut socklen_t, peer_addr: &mut *const sockaddr_storage,
peer_addr_len: &mut socklen_t,
Expand Down

0 comments on commit 2498b26

Please sign in to comment.