audk/MdeModulePkg/Universal/Network
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
..
ArpDxe MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
Dhcp4Dxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
DpcDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
IScsiDxe MdeModulePkg IScsiDxe: Fix a typo in function description 2016-01-06 01:11:49 +00:00
Ip4Dxe MdeModulePkg: Add new macros and refine codes 2016-04-11 08:25:33 +08:00
MnpDxe MdeModulePkg:Fix a robustness issue of Mnp Driver 2016-02-29 09:24:58 +08:00
Mtftp4Dxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
SnpDxe MdeModulePkg: SNP should check Cdb.StatCode with PXE_STATCODE_SUCCESS. 2016-02-17 08:51:03 +08:00
Tcp4Dxe MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
Udp4Dxe MdeModulePkg: Check received packet size before use it. 2016-04-01 13:30:08 +08:00
UefiPxeBcDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
VlanConfigDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00