Refine code.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10648 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -37,7 +37,7 @@ GetSubnetMaskPrefixLength (
|
||||
//
|
||||
// The SubnetMask is in network byte order.
|
||||
//
|
||||
ReverseMask = (SubnetMask->Addr[0] << 24) | (SubnetMask->Addr[1] << 16) | (SubnetMask->Addr[2] << 8) | (SubnetMask->Addr[3]);
|
||||
ReverseMask = SwapBytes32 (*(UINT32 *)&SubnetMask[0]);
|
||||
|
||||
//
|
||||
// Reverse it.
|
||||
|
Reference in New Issue
Block a user