Skip to content

Commit

Permalink
- Fix new IOCTL declarations and minor reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
sm-msft committed Feb 4, 2025
1 parent b4e1e0d commit 68ce91c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/test/MsQuicTests.h
Original file line number Diff line number Diff line change
Expand Up @@ -781,11 +781,6 @@ typedef struct {
QUIC_CTL_CODE(15, METHOD_BUFFERED, FILE_WRITE_DATA)
// int - Family

#define IOCTL_QUIC_RUN_TEST_ADDR_FUNCTIONS \
QUIC_CTL_CODE(16, METHOD_BUFFERED, FILE_WRITE_DATA)
// int - Family


#pragma pack(push)
#pragma pack(1)

Expand Down Expand Up @@ -1346,4 +1341,8 @@ typedef struct {
QUIC_CTL_CODE(126, METHOD_BUFFERED, FILE_WRITE_DATA)
// int - Family

#define QUIC_MAX_IOCTL_FUNC_CODE 126
#define IOCTL_QUIC_RUN_TEST_ADDR_FUNCTIONS \
QUIC_CTL_CODE(127, METHOD_BUFFERED, FILE_WRITE_DATA)
// int - Family

#define QUIC_MAX_IOCTL_FUNC_CODE 127
1 change: 1 addition & 0 deletions src/test/bin/winkernel/control.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ size_t QUIC_IOCTL_BUFFER_SIZES[] =
0,
sizeof(BOOLEAN),
sizeof(INT32),
sizeof(INT32), // IOCTL_QUIC_RUN_TEST_ADDR_FUNCTIONS
};

CXPLAT_STATIC_ASSERT(
Expand Down
3 changes: 1 addition & 2 deletions src/test/lib/BasicTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,7 @@ void QuicTestAddrFunctions(_In_ int Family)
QuicAddrSetToLoopback(&SockAddr);
TEST_TRUE(SockAddr.Ipv4.sin_addr.s_host == 0);
TEST_TRUE(SockAddr.Ipv4.sin_addr.s_lh == 0);
}
else {
} else {
memset(&SockAddr.Ipv6.sin6_addr, 0XFF, sizeof(SockAddr.Ipv6.sin6_addr));
for (int i = 0; i < sizeof(SockAddr.Ipv6.sin6_addr.u.Byte) - 1; i++) {
TEST_TRUE(SockAddr.Ipv6.sin6_addr.u.Byte[i] == 0);
Expand Down

0 comments on commit 68ce91c

Please sign in to comment.