From 411c112d3580dc77e9a00a3d422e0fd32d94eccf Mon Sep 17 00:00:00 2001 From: Alex Petrenko Date: Mon, 13 Nov 2023 16:23:42 -0800 Subject: [PATCH] Added TCP support and XDP support --- src/tools/attack/attack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/attack/attack.cpp b/src/tools/attack/attack.cpp index 7dc1d31249..23d194b79e 100644 --- a/src/tools/attack/attack.cpp +++ b/src/tools/attack/attack.cpp @@ -141,7 +141,7 @@ void RunAttackRandom(CXPLAT_SOCKET* Binding, uint16_t Length, bool ValidQuic, bo QUIC_STATUS Status = CxPlatResolveRoute(Binding, &Route, 0, &Context, ResolveRouteComplete); if (Status == QUIC_STATUS_PENDING) { CxPlatEventInitialize(&(Context.Event), FALSE, FALSE); - BOOLEAN EventSet = CxPlatEventWaitWithTimeout(Context.Event, (DWORD)TimeoutMs); + BOOLEAN EventSet = CxPlatEventWaitWithTimeout(Context.Event, (uint32_t)TimeoutMs); CxPlatEventUninitialize(Context.Event); if (!EventSet) { printf("Failed to CxPlatResolveRoute before timeout!\n"); @@ -216,7 +216,7 @@ void RunAttackValidInitial(CXPLAT_SOCKET* Binding) QUIC_STATUS Status = CxPlatResolveRoute(Binding, &Route, 0, &Context, ResolveRouteComplete); if (Status == QUIC_STATUS_PENDING) { CxPlatEventInitialize(&(Context.Event), FALSE, FALSE); - BOOLEAN EventSet = CxPlatEventWaitWithTimeout(Context.Event, (DWORD)TimeoutMs); + BOOLEAN EventSet = CxPlatEventWaitWithTimeout(Context.Event, (uint32_t)TimeoutMs); CxPlatEventUninitialize(Context.Event); if (!EventSet) { printf("Failed to CxPlatResolveRoute before timeout!\n");