[NVNET] Fix two typos (#9345)

- Fix ETH_IS_EMPTY macro condition (5th octet)
- Add missing assignment of maximum VLAN ID

CORE-15872
This commit is contained in:
Dmitry Borisov
2026-07-26 19:52:51 +03:00
committed by GitHub
parent 8f5475054c
commit af36fc655d
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ typedef struct _ETH_HEADER
(BOOLEAN)(((PUCHAR)(Address))[0] & ((UCHAR)0x02))
#define ETH_IS_EMPTY(Address) \
(BOOLEAN)((((PUCHAR)(Address))[0] | ((PUCHAR)(Address))[1] | ((PUCHAR)(Address))[2] | \
((PUCHAR)(Address))[3] | ((PUCHAR)(Address))[5] | ((PUCHAR)(Address))[5]) == 0)
((BOOLEAN)((((PUCHAR)(Address))[0] | ((PUCHAR)(Address))[1] | ((PUCHAR)(Address))[2] | \
((PUCHAR)(Address))[3] | ((PUCHAR)(Address))[4] | ((PUCHAR)(Address))[5]) == 0))
typedef struct IPv4_HEADER
{
+1
View File
@@ -175,6 +175,7 @@ NvNetReadConfiguration(
0,
0,
NVNET_MAXIMUM_VLAN_ID);
Adapter->VlanId = GenericUlong;
NdisReadNetworkAddress(&Status,
(PVOID*)&NetworkAddress,