diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2018-08-28 09:48:32 +0800 |
---|---|---|
committer | Fu Siyuan <siyuan.fu@intel.com> | 2018-09-03 08:36:55 +0800 |
commit | 12ae56cf28d6a435f39a7c9c3a97185baf76f005 (patch) | |
tree | 2b9d7d455a8d0ddcc6250e2ef7e7464e88d1b1e1 /MdeModulePkg/Include/Library | |
parent | 1e57188216b1bf8de3473a0e03e422815f8f53d6 (diff) | |
download | edk2-12ae56cf28d6a435f39a7c9c3a97185baf76f005.tar.gz edk2-12ae56cf28d6a435f39a7c9c3a97185baf76f005.tar.bz2 edk2-12ae56cf28d6a435f39a7c9c3a97185baf76f005.zip |
MdeModulePkg/Network: Add 32bit subnet mask support for IP4 PXE boot.
This patch updates IP4 stack to support 32bit subnet mask in PXE boot process.
When 32bit subnet mask is used, the IP4 driver couldn't use the subnet mask to determine
whether destination IP address is on-link or not, so it will always try to send all the
packets to the destination IP address directly first, if failed it will continue
to try the default gateway.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-by: Ye Ting <ting.ye@intel.com>
Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com>
Diffstat (limited to 'MdeModulePkg/Include/Library')
-rw-r--r-- | MdeModulePkg/Include/Library/NetLib.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MdeModulePkg/Include/Library/NetLib.h b/MdeModulePkg/Include/Library/NetLib.h index ef7bc429c1..b7ef99c7b5 100644 --- a/MdeModulePkg/Include/Library/NetLib.h +++ b/MdeModulePkg/Include/Library/NetLib.h @@ -422,8 +422,9 @@ NetGetIpClass ( If all bits of the host address of IP are 0 or 1, IP is also not a valid unicast address,
except when the originator is one of the endpoints of a point-to-point link with a 31-bit
- mask (RFC3021).
-
+ mask (RFC3021), or a 32bit NetMask (all 0xFF) is used for special network environment (e.g.
+ PPP link).
+
@param[in] Ip The IP to check against.
@param[in] NetMask The mask of the IP.
|