Skip to content

Commit

Permalink
Added TCP support and XDP support
Browse files Browse the repository at this point in the history
  • Loading branch information
VipAlekseyPetrenko committed Nov 14, 2023
1 parent 0342d71 commit 411c112
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tools/attack/attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 411c112

Please sign in to comment.