mirror of https://github.com/reactos/reactos.git
[DDK:NDIS] Fix definition of broadcast address macro (#5155)
ff:ff:ff:ff:ff:ff is the broadcast MAC address. CORE-8724
This commit is contained in:
parent
1c7c0fa7a7
commit
557306f5c0
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue