diff options
author | Zhang Lubo <lubo.zhang@intel.com> | 2016-04-08 09:48:14 +0800 |
---|---|---|
committer | Jiaxin Wu <jiaxin.wu@intel.com> | 2016-04-11 08:25:33 +0800 |
commit | 364f4efa444150df3f074f563374dce1e153adc6 (patch) | |
tree | 0ac1da2a778b68601b4d9081d43c5a4ed4d0d85b /BeagleBoardPkg | |
parent | c720da286687aed978d9a20bcdd6d303bade9ddc (diff) | |
download | edk2-platforms-364f4efa444150df3f074f563374dce1e153adc6.tar.xz |
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>
Diffstat (limited to 'BeagleBoardPkg')
0 files changed, 0 insertions, 0 deletions