From 557306f5c0364814f250a9a24401c0fcc8220768 Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Sat, 18 Mar 2023 21:57:52 +0600 Subject: [PATCH] [DDK:NDIS] Fix definition of broadcast address macro (#5155) ff:ff:ff:ff:ff:ff is the broadcast MAC address. CORE-8724 --- sdk/include/ddk/xfilter.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/include/ddk/xfilter.h b/sdk/include/ddk/xfilter.h index b4ad7bc3fc3..4a9facd1b64 100644 --- a/sdk/include/ddk/xfilter.h +++ b/sdk/include/ddk/xfilter.h @@ -30,7 +30,9 @@ extern "C" { #define ETH_LENGTH_OF_ADDRESS 6 #define ETH_IS_BROADCAST(Address) \ - ((((PUCHAR)(Address))[0] == ((UCHAR)0xff)) && (((PUCHAR)(Address))[1] == ((UCHAR)0xff))) + ((((PUCHAR)(Address))[0] == ((UCHAR)0xff)) && (((PUCHAR)(Address))[1] == ((UCHAR)0xff)) && \ + (((PUCHAR)(Address))[2] == ((UCHAR)0xff)) && (((PUCHAR)(Address))[3] == ((UCHAR)0xff)) && \ + (((PUCHAR)(Address))[4] == ((UCHAR)0xff)) && (((PUCHAR)(Address))[5] == ((UCHAR)0xff))) #define ETH_IS_MULTICAST(Address) \ (BOOLEAN)(((PUCHAR)(Address))[0] & ((UCHAR)0x01))