]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg/UefiPxeBcDxe: Allow the NULL configuration for NewStationIP/NewSubnetMask
authorJiaxin Wu <jiaxin.wu@intel.com>
Wed, 13 Dec 2017 08:58:01 +0000 (16:58 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Fri, 15 Dec 2017 00:47:04 +0000 (08:47 +0800)
commitf8e13a24b7a19d0076ac6a9a621891f54128156b
tree54306e95d8f42197b45b22efa84f988373905b97
parent09cddd088ced31a99d3b0e4ea2f18a77f2582cd2
NetworkPkg/UefiPxeBcDxe: Allow the NULL configuration for NewStationIP/NewSubnetMask

According the UEFI Spec for PxeBc.SetStationIP():
If NewStationIP is NULL, then the current IP address will not be modified.
...
If NewSubnetMask is NULL, then the current subnet mask will not be modified.

Currently, EfiPxeBcSetStationIP() doesn't comply with UEFI Spec. This patch is
to fix the issue.

Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
NetworkPkg/UefiPxeBcDxe/PxeBcSupport.c
NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h