/** @file\r
Support routines for PxeBc.\r
-Copyright (c) 2007 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2018, 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
/**\r
- The common notify function associated with various PxeBc events. \r
+ The common notify function associated with various PxeBc events.\r
\r
@param Event The event signaled.\r
@param Context The context.\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
+\r
+/**\r
+ This function is to display the IPv4 address.\r
+\r
+ @param[in] Ip The pointer to the IPv4 address.\r
+\r
+**/\r
+VOID\r
+PxeBcShowIp4Addr (\r
+ IN EFI_IPv4_ADDRESS *Ip\r
+ );\r
+\r
+\r
/**\r
Convert number to ASCII value.\r
\r
@param Number The unsigned int number will be converted.\r
@param Buffer Pointer to the buffer to store the decimal number after transform.\r
@param[in] BufferSize The maxsize of the buffer.\r
- \r
+\r
@return the length of the number after transform.\r
\r
**/\r
IN UINTN Number,\r
IN CHAR8 *Buffer,\r
IN UINTN BufferSize\r
- \r
+\r
);\r
\r
\r