]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
MdeModulePkg: Do not use hard coded TTL/ToS in PXE driver.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 29 Apr 2016 07:09:20 +0000 (15:09 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 5 May 2016 01:08:26 +0000 (09:08 +0800)
commit60de3c19a7f875e4f9a012d275e8bb5ce4efb31d
treefc8b29ee1bf5acd05a5e013a99cb530efa078206
parent6f2f4116ebe4d3881757d0a08c8a660524775247
MdeModulePkg: Do not use hard coded TTL/ToS in PXE driver.

EFI_PXE_BASE_CODE_PROTOCOL has interface to set the TTL and ToS value, but
not used by the UdpWrite() interface. The code always use a hard coded 16
for the TTL and 0 for ToS.
This patch update the UpdWrite() to use the TTL and ToS which have been set
by the SetParameters().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com>
Reviewed-By: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-By: Samer El-Haj-Mahmoud <elhaj@hpe.com>
MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c
MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcSupport.c
MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcSupport.h