]> git.proxmox.com Git - mirror_edk2.git/commit
NetworkPkg: Do not use hard coded TTL/ToS in PXE driver.
authorFu Siyuan <siyuan.fu@intel.com>
Fri, 29 Apr 2016 07:08:58 +0000 (15:08 +0800)
committerFu Siyuan <siyuan.fu@intel.com>
Thu, 5 May 2016 01:08:24 +0000 (09:08 +0800)
commit6f2f4116ebe4d3881757d0a08c8a660524775247
tree5f74d8616a77d5fd85f1d82cab3fdb7f696e4a80
parenta2cc5fea44b5b5a28dcf6448eafe61aa5ebb42c7
NetworkPkg: 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>
NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c
NetworkPkg/UefiPxeBcDxe/PxeBcSupport.c
NetworkPkg/UefiPxeBcDxe/PxeBcSupport.h