edk2/MdeModulePkg/Library/DxeNetLib
Fu Siyuan 419f930dde MdeModulePkg: Update NetLib interface to support classless addressing.
The classful addressing (IP class A/B/C) has been deprecated according to
RFC4632. This patch updates the NetLib NetGetIpClass() and NetIp4IsUnicast()
accordingly.

NetGetIpClass()
The function is kept for compatibility, while the caller of this function
could only check the returned value against with IP4_ADDR_CLASSD (multicast)
or IP4_ADDR_CLASSE (reserved) now. The function has been updated to note this.

NetIp4IsUnicast()
The NetMask becomes a required parameter to check the unicast address.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
(cherry picked from commit 3289dcba45)
2017-05-17 10:19:49 +08:00
..
DxeNetLib.c MdeModulePkg: Update NetLib interface to support classless addressing. 2017-05-17 10:19:49 +08:00
DxeNetLib.inf MdeModulePkg: Add SMBIOS 3.0 support in NetLibGetSystemGuid. 2015-11-16 06:48:33 +00:00
DxeNetLib.uni MdeModulePkg: Convert non DOS format files to DOS format and remove unused module UNI files. 2014-09-03 08:39:12 +00:00
NetBuffer.c Update IPsec.h file to follow approved ECR which will be collected into future UEFI 2.3 Specification after 2.3 errata B and future UEFI Specifications after 2.3. The changes mainly include: 2010-10-15 05:40:41 +00:00