audk/NetworkPkg
Zhang Lubo c720da2866 NetworkPkg: Add new macros and refine codes
v2:
*refine some codes

Add 2 macros in NetLib.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:24:47 +08:00
..
Application NetworkPkg: Refine the code of shell app under networkPkg. 2016-03-11 11:55:06 +08:00
Dhcp6Dxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
DnsDxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
HttpBootDxe NetworkPkg: Check pointer for NULL before use. 2016-04-01 13:14:49 +08:00
HttpDxe NetworkPkg: Use the New Functions from HttpLib 2016-03-10 10:01:42 +08:00
HttpUtilitiesDxe NetworkPkg: Use the New Functions from HttpLib 2016-03-10 10:01:42 +08:00
IScsiDxe NetworkPkg IScsiDxe: Fix typos in function descriptions 2016-01-06 01:12:27 +00:00
Include/Guid NetworkPkg: Add URI configuration form to HTTP boot driver. 2016-03-07 09:12:14 +08:00
Ip6Dxe NetworkPkg: Add new macros and refine codes 2016-04-11 08:24:47 +08:00
IpSecDxe NetworkPkg: IpSecDxe: remove set but unused variables 2016-03-25 10:52:31 +01:00
Mtftp6Dxe NetworkPkg:Fix Network memory leak when calling GetModeData interface 2016-01-28 02:32:43 +00:00
TcpDxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
Udp6Dxe NetworkPkg: Check received packet size before use it. 2016-04-01 13:30:23 +08:00
UefiPxeBcDxe NetworkPkg: Reword PXE download message 2016-02-14 10:18:54 +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
NetworkPkg.dec NetworkPkg: Add URI configuration form to HTTP boot driver. 2016-03-07 09:12:14 +08:00
NetworkPkg.dsc NetworkPkg: Add NOOPT target in NetworkPkg.dsc 2016-01-19 04:06:24 +00:00
NetworkPkg.uni NetworkPkg: Update NetworkPkg.uni to UTF-8 file format 2015-12-23 07:55:27 +00:00
NetworkPkgExtra.uni NetworkPkg: Convert all .uni files to utf-8 2015-12-15 04:56:57 +00:00