Skip to content

Commit

Permalink
assemble definition in same ifdef
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-GS committed Nov 20, 2024
1 parent d67a79b commit ca42af4
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/platform/platform_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,6 @@ typedef enum CXPLAT_SOCKET_TYPE {

#define DatapathType(SendData) ((CXPLAT_SEND_DATA_COMMON*)(SendData))->DatapathType

#ifdef _WIN32

#define IS_LOOPBACK(Address) ((Address.si_family == QUIC_ADDRESS_FAMILY_INET && \
IN4_IS_ADDR_LOOPBACK(&Address.Ipv4.sin_addr)) || \
(Address.si_family == QUIC_ADDRESS_FAMILY_INET6 && \
IN6_IS_ADDR_LOOPBACK(&Address.Ipv6.sin6_addr)))

#endif

#ifdef _KERNEL_MODE

#define CXPLAT_BASE_REG_PATH L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\MsQuic\\Parameters\\"
Expand Down Expand Up @@ -774,7 +765,12 @@ CxPlatConvertFromMappedV6(
}
#pragma warning(pop)

#endif
#define IS_LOOPBACK(Address) ((Address.si_family == QUIC_ADDRESS_FAMILY_INET && \
IN4_IS_ADDR_LOOPBACK(&Address.Ipv4.sin_addr)) || \
(Address.si_family == QUIC_ADDRESS_FAMILY_INET6 && \
IN6_IS_ADDR_LOOPBACK(&Address.Ipv6.sin6_addr)))

#endif // _WIN32

//
// Crypt Initialization
Expand Down

0 comments on commit ca42af4

Please sign in to comment.