/** @file\r
Interface routines for PxeBc.\r
\r
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
&Private->StationIp.v4,\r
&Private->SubnetMask.v4,\r
&Private->GatewayIp.v4,\r
- &Private->CurrentUdpSrcPort\r
+ &Private->CurrentUdpSrcPort,\r
+ Private->Mode.TTL,\r
+ Private->Mode.ToS\r
);\r
if (EFI_ERROR (Status)) {\r
Private->CurrentUdpSrcPort = 0;\r
/** @file\r
Support routines for PxeBc.\r
\r
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
@param SubnetMask Pointer to the subnetmask of the station ip address.\r
@param Gateway Pointer to the gateway ip address.\r
@param SrcPort Pointer to the srouce port of the station.\r
+ @param TTL The time to live field of the IP header. \r
+ @param ToS The type of service field of the IP header.\r
\r
@retval EFI_SUCCESS The configuration settings were set, changed, or reset successfully.\r
@retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP,\r
IN EFI_IPv4_ADDRESS *StationIp,\r
IN EFI_IPv4_ADDRESS *SubnetMask,\r
IN EFI_IPv4_ADDRESS *Gateway,\r
- IN OUT UINT16 *SrcPort\r
+ IN OUT UINT16 *SrcPort,\r
+ IN UINT8 TTL,\r
+ IN UINT8 ToS\r
)\r
{\r
EFI_UDP4_CONFIG_DATA Udp4CfgData;\r
ZeroMem (&Udp4CfgData, sizeof (Udp4CfgData));\r
\r
Udp4CfgData.ReceiveTimeout = PXEBC_DEFAULT_LIFETIME;\r
- Udp4CfgData.TypeOfService = DEFAULT_ToS;\r
- Udp4CfgData.TimeToLive = DEFAULT_TTL;\r
+ Udp4CfgData.TypeOfService = ToS;\r
+ Udp4CfgData.TimeToLive = TTL;\r
Udp4CfgData.AllowDuplicatePort = TRUE;\r
\r
CopyMem (&Udp4CfgData.StationAddress, StationIp, sizeof (*StationIp));\r
/** @file\r
Support routines for PxeBc.\r
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
/**\r
This function initialize(or configure) the Udp4Write instance.\r
- \r
+\r
@param Udp4 Pointer to the EFI_UDP4_PROTOCOL instance.\r
@param StationIp Pointer to the station ip address.\r
@param SubnetMask Pointer to the subnetmask of the station ip address.\r
@param Gateway Pointer to the gateway ip address.\r
@param SrcPort Pointer to the srouce port of the station.\r
- \r
+ @param TTL The time to live field of the IP header. \r
+ @param ToS The type of service field of the IP header.\r
+\r
@retval EFI_SUCCESS The configuration settings were set, changed, or reset successfully.\r
@retval EFI_NO_MAPPING When using a default address, configuration (DHCP, BOOTP,\r
RARP, etc.) is not finished yet.\r
@retval EFI_DEVICE_ERROR An unexpected network or system error occurred and this instance\r
was not opened.\r
@retval Others Please examine the function Udp4->Routes(Udp4, FALSE, &mZeroIp4Addr, &mZeroIp4Addr, Gateway) returns.\r
- \r
+\r
**/\r
EFI_STATUS\r
PxeBcConfigureUdpWriteInstance (\r
IN EFI_IPv4_ADDRESS *StationIp,\r
IN EFI_IPv4_ADDRESS *SubnetMask,\r
IN EFI_IPv4_ADDRESS *Gateway,\r
- IN OUT UINT16 *SrcPort\r
+ IN OUT UINT16 *SrcPort,\r
+ IN UINT8 TTL,\r
+ IN UINT8 ToS\r
);\r
/**\r
Convert number to ASCII value.\r