https://git.reactos.org/?p=reactos.git;a=commitdiff;h=557306f5c0364814f250a…
commit 557306f5c0364814f250a9a24401c0fcc8220768
Author: Dmitry Borisov <di.sean(a)protonmail.com>
AuthorDate: Sat Mar 18 21:57:52 2023 +0600
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Mar 18 16:57:52 2023 +0100
[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))