diff options
| author | Zhang Lubo <lubo.zhang@intel.com> | 2016-04-08 04:44:09 +0300 |
|---|---|---|
| committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-04-11 03:24:47 +0300 |
| commit | c720da286687aed978d9a20bcdd6d303bade9ddc (patch) | |
| tree | d7c947c59f48d487f47ee96883ebd3fa632a41e3 /MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c | |
| parent | 70dc0b809c5ea4641a730a7750338048bae63be5 (diff) | |
| download | edk2-c720da286687aed978d9a20bcdd6d303bade9ddc.tar.xz | |
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>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib/BootScriptSave.c')
0 files changed, 0 insertions, 0 deletions
