audk/MdeModulePkg
Zhang Lubo 364f4efa44 MdeModulePkg: Add new macros and refine codes
Add 2 macros inNetLib.h
#define  IP4_MASK_MAX          32
#define  IP6_PREFIX_MAX        128
we will use these two macros to check the max mask/prefix length,
instead of
#define  IP4_MASK_NUM          33
#define  IP6_PREFIX_NUM        129
which means a valid number.
This will make the code readability and maintainability.

Cc: Subramanian Sriram <sriram-s@hpe.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
2016-04-11 08:25:33 +08:00
..
Application MdeModulePkg/UiApp: Correct the total RAM calculation 2016-04-05 11:18:08 +08:00
Bus MdeModulePkg: Add Ps2MouseDxe driver 2016-04-08 17:45:59 +08:00
Core MdeModulePkg DxeCore: Address boundary check for Type AllocateAddress 2016-03-22 11:00:40 +08:00
Include MdeModulePkg: Add new macros and refine codes 2016-04-11 08:25:33 +08:00
Library MdeModulePkg: Add new macros and refine codes 2016-04-11 08:25:33 +08:00
Logo MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
Universal MdeModulePkg: Add new macros and refine codes 2016-04-11 08:25:33 +08:00
Contributions.txt */Contributions.txt: Update example email address 2015-02-03 17:29:14 +00:00
License.txt Update copyright format 2012-04-24 06:49:39 +00:00
MdeModulePkg.dec MdeModulePkg: Add Ps2MouseDxe driver 2016-04-08 17:45:59 +08:00
MdeModulePkg.dsc MdeModulePkg: Add Ps2MouseDxe driver 2016-04-08 17:45:59 +08:00
MdeModulePkg.uni MdeModulePkg S3SaveStateDxe: Move S3Ready() functional code from AcpiS3SaveDxe 2016-04-07 17:32:03 +02:00
MdeModulePkgExtra.uni MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00